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-few-public-methods check #16264

Conversation

john-bodley
Copy link
Member

SUMMARY

Re-enabling the Pylint too-few-public-methods check.

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 14, 2021

Codecov Report

Merging #16264 (7aa9ece) into master (7b72443) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16264   +/-   ##
=======================================
  Coverage   76.47%   76.48%           
=======================================
  Files         997      997           
  Lines       53245    53238    -7     
  Branches     6777     6774    -3     
=======================================
- Hits        40720    40718    -2     
+ Misses      12295    12290    -5     
  Partials      230      230           
Flag Coverage Δ
mysql 81.56% <100.00%> (ø)
postgres 81.55% <100.00%> (-0.05%) ⬇️
python 81.67% <100.00%> (ø)
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/commands/base.py 100.00% <100.00%> (ø)
superset/common/query_context.py 90.74% <100.00%> (ø)
superset/dashboards/commands/importers/v1/utils.py 80.59% <100.00%> (ø)
superset/databases/schemas.py 98.38% <100.00%> (ø)
superset/examples/multiformat_time_series.py 16.66% <100.00%> (ø)
superset/extensions.py 92.68% <100.00%> (ø)
superset/utils/encrypt.py 88.00% <100.00%> (ø)
superset/utils/pandas_postprocessing.py 84.80% <100.00%> (ø)
... and 7 more

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 b5c7ed9...7aa9ece. 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.

This rule would be great if it didn't trigger when the class name ends in Mixin or similar. I'm not sure of the need for re-enabling this rule - any particular reason we'd want this other than going with defaults?

@john-bodley
Copy link
Member Author

@villebro I agree that there are cases where we want to disable this, but again it's there to help ensure people aren't using a class as a container when a dataclass, namedtuple or similar would be suffice, or maybe using a method.

@villebro
Copy link
Member

@villebro I agree that there are cases where we want to disable this, but again it's there to help ensure people aren't using a class as a container when a dataclass, namedtuple or similar would be suffice, or maybe using a method.

@john-bodley ok fair enough 👍

@john-bodley john-bodley merged commit 36bc7b0 into apache:master Aug 16, 2021
@john-bodley john-bodley deleted the john-bodley--pylint-reenable-too-few-public-methods branch August 16, 2021 17:20
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@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