Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(pylint): Reenable ungrouped-imports check #16256

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Aug 13, 2021

SUMMARY

Re-enabling the Pylint ungrouped-imports check. This is a no-op since #16146 which bumped the version of Pylint to resolve a number of false positive ungrouped-imports errors related to TYPE_CHECKING. See pylint-dev/pylint#3382 for more details.

TESTING INSTRUCTIONS

CI.

ADDITIONAL INFORMATION

  • Has associated issue: [SIP-46] Proposal for strict Pylint enforcement #9953
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@john-bodley john-bodley force-pushed the john-bodley--pylint-reenable-ungrouped-imports branch from 32d083c to 182fbdd Compare August 13, 2021 22:57
@@ -34,7 +34,7 @@ REGEXES=()
for CHECK in "$@"
do
if [[ ${CHECK} == "python" ]]; then
REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt)"
REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt|^\.pylintrc)"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This maybe overkill, i.e., enable all Python checks on only a change to the .pylintrc file, though changes to only the .pylintrc file are rare.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this; these are so uncommon doing a bit of overkill here is better than not doing it at all.

@codecov
Copy link

codecov bot commented Aug 14, 2021

Codecov Report

Merging #16256 (e3949f6) into master (24b43be) will decrease coverage by 0.14%.
The diff coverage is n/a.

❗ Current head e3949f6 differs from pull request most recent head 182fbdd. Consider uploading reports for the commit 182fbdd to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16256      +/-   ##
==========================================
- Coverage   76.72%   76.58%   -0.15%     
==========================================
  Files         997      997              
  Lines       53238    53238              
  Branches     6772     6772              
==========================================
- Hits        40847    40770      -77     
- Misses      12161    12238      +77     
  Partials      230      230              
Flag Coverage Δ
hive ?
mysql 81.56% <ø> (ø)
postgres 81.59% <ø> (+<0.01%) ⬆️
presto 81.42% <ø> (+0.04%) ⬆️
python 81.82% <ø> (-0.29%) ⬇️
sqlite ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/db_engines/hive.py 0.00% <0.00%> (-82.15%) ⬇️
superset/db_engine_specs/hive.py 69.80% <0.00%> (-16.87%) ⬇️
superset/db_engine_specs/sqlite.py 91.89% <0.00%> (-5.41%) ⬇️
superset/connectors/sqla/utils.py 88.23% <0.00%> (-3.93%) ⬇️
superset/utils/celery.py 86.20% <0.00%> (-3.45%) ⬇️
superset/result_set.py 96.77% <0.00%> (-1.62%) ⬇️
superset/utils/cache.py 73.58% <0.00%> (-0.95%) ⬇️
superset/connectors/sqla/models.py 89.46% <0.00%> (-0.24%) ⬇️
superset/utils/core.py 88.97% <0.00%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24b43be...182fbdd. Read the comment docs.

@@ -34,7 +34,7 @@ REGEXES=()
for CHECK in "$@"
do
if [[ ${CHECK} == "python" ]]; then
REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt)"
REGEX="(^\.github\/workflows\/.*python|^tests\/|^superset\/|^setup\.py|^requirements\/.+\.txt|^\.pylintrc)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this; these are so uncommon doing a bit of overkill here is better than not doing it at all.

@john-bodley john-bodley merged commit 7b72443 into apache:master Aug 16, 2021
@john-bodley john-bodley deleted the john-bodley--pylint-reenable-ungrouped-imports branch August 16, 2021 16:01
amitmiran137 added a commit that referenced this pull request Aug 16, 2021
* master:
  chore(pylint): Reenable ungrouped-imports check (#16256)
  chore(pylint): Re-enable super-with-arguments check (#16138)
  fix: disable text reports for now (#16257)
  fix: pivot col names in post_process (#16262)
  chore: Improves the flow to create a new chart (#16252)
  Move pagination outside of table (#16232)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
Co-authored-by: John Bodley <john.bodley@airbnb.com>
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
Co-authored-by: John Bodley <john.bodley@airbnb.com>
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants