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

fix: update pylint disabled checks in common/query_context.py #10941

Merged
merged 3 commits into from
Sep 18, 2020

Conversation

kkucharc
Copy link
Contributor

@kkucharc kkucharc commented Sep 17, 2020

SUMMARY

Updated pylint checks in common/query_context.py:

  • removed disabled pylint rule no-self-use from df_metrics_to_num() since it has @staticmethod,
  • the disabled check too-many-locals in get_df_payload() method is removed since it's not appearing while pylint check,
  • removed disable=no-self-use in get_data(), because method has self as param,
  • applied auto-formatting with black

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

- removed disabled pylint rule no-self-use from `df_metrics_to_num` since it has `@staticmethod`
- applied black on the file
- removing # pylint: disable=no-self-use
- autoformatting
@kkucharc kkucharc changed the title fix: update pylint disabled checks in commands/query_context.py fix: update pylint disabled checks in common/query_context.py Sep 17, 2020
@mistercrunch mistercrunch merged commit e21a354 into apache:master Sep 18, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
…#10941)

* Updated common/query_context.py
- removed disabled pylint rule no-self-use from `df_metrics_to_num` since it has `@staticmethod`
- applied black on the file

* Removed disabled lint check `too-many-locals` in get_df_payload method. Applied black.

* Method `get_data()` has self param:
- removing # pylint: disable=no-self-use
- autoformatting
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.0 labels Mar 12, 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 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants