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 too-many-locals check #16268

Conversation

john-bodley
Copy link
Member

SUMMARY

Re-enabling the Pylint too-many-locals check.

Note the goal is not to remedy existing code, i.e., I merely have added disabled checks locally, but rather to enforce future changes from using too many local variables which often makes the code difficult to grok.

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

@codecov
Copy link

codecov bot commented Aug 15, 2021

Codecov Report

Merging #16268 (ea4c5bc) into master (3709131) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16268      +/-   ##
==========================================
- Coverage   76.70%   76.62%   -0.08%     
==========================================
  Files         997      997              
  Lines       53240    53240              
  Branches     6774     6774              
==========================================
- Hits        40838    40797      -41     
- Misses      12172    12213      +41     
  Partials      230      230              
Flag Coverage Δ
hive 81.27% <100.00%> (-0.05%) ⬇️
mysql 81.56% <100.00%> (+0.04%) ⬆️
postgres 81.59% <100.00%> (ø)
presto ?
python 81.95% <100.00%> (-0.15%) ⬇️
sqlite 81.23% <100.00%> (ø)

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

Impacted Files Coverage Δ
superset/dashboards/api.py 93.03% <ø> (ø)
superset/datasets/api.py 91.92% <ø> (ø)
superset/utils/profiler.py 40.90% <ø> (ø)
superset/common/query_context.py 90.74% <100.00%> (ø)
superset/dashboards/commands/importers/v1/utils.py 80.59% <100.00%> (ø)
superset/examples/multiformat_time_series.py 16.66% <100.00%> (ø)
superset/utils/pandas_postprocessing.py 84.80% <100.00%> (ø)
superset/db_engine_specs/presto.py 84.51% <0.00%> (-5.86%) ⬇️
superset/connectors/sqla/models.py 88.28% <0.00%> (-1.43%) ⬇️
superset/models/core.py 89.14% <0.00%> (-0.26%) ⬇️

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 3709131...ea4c5bc. Read the comment docs.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

I didn't remember this check was disabled (I assume it must have been disabled recently?). Anyway, I agree that this is a good check to at least remind the developer that the function is becoming loaded.

@john-bodley john-bodley merged commit b5c7ed9 into apache:master Aug 16, 2021
@john-bodley john-bodley deleted the john-bodley--pylint-reenable-too-many-locals branch August 16, 2021 16:23
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/S 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants