-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
STYLE ignore no-else-* checks, + assorted cleanups #49750
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
Changes from 2 commits
04a1eeb
93b5793
6ec1012
e238fbb
312d64f
156ef11
038a7e8
18f935e
255317a
157ac22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,8 @@ jobs: | |
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
typing_and_docstring_validation: | ||
name: Docstring and typing validation | ||
docstring_typing_pylint: | ||
name: Docstring validation, typing, and pylint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,30 @@ repos: | |
hooks: | ||
- id: pylint | ||
stages: [manual] | ||
- repo: https://github.com/pycqa/pylint | ||
rev: v2.15.5 | ||
hooks: | ||
- id: pylint | ||
files: ^pandas/ | ||
exclude: | | ||
(?x) | ||
^pandas/tests # leave turned off | ||
|/_testing/ # leave turned off | ||
|^pandas/util/_test_decorators\.py # leave turned off | ||
|^pandas/_version\.py # leave turned off | ||
|^pandas/conftest\.py | ||
|^pandas/core/generic\.py | ||
|^pandas/core/internals/concat\.py | ||
|^pandas/core/reshape/merge\.py | ||
|^pandas/core/tools/datetimes\.py | ||
|^pandas/formats/format\.py | ||
|^pandas/io/formats/format\.py | ||
|^pandas/io/formats/style\.py | ||
|^pandas/io/json/_json\.py | ||
|^pandas/io/xml\.py | ||
|^pandas/util/_decorators\.py | ||
|^pandas/util/_doctools\.py | ||
args: [--disable=all, --enable=redefined-outer-name] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also while I'm touching pylint stuff - adding in a hook only runs the the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 17 seconds still seems very slow for when committing .. Although I assume that is for the full codebase? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
nevermind, that's because it's in the If I remove |
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
hooks: | ||
|
@@ -201,7 +225,7 @@ repos: | |
entry: python scripts/sync_flake8_versions.py | ||
files: ^(\.pre-commit-config\.yaml|environment\.yml)$ | ||
pass_filenames: false | ||
additional_dependencies: [pyyaml] | ||
additional_dependencies: [pyyaml, toml] | ||
Comment on lines
-204
to
+223
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is unrelated to the pylint changes, but it's really minor so doing it while I'm here The local hook just above has
, so this one might as well take |
||
- id: title-capitalization | ||
name: Validate correct capitalization among titles in documentation | ||
entry: python scripts/validate_rst_title_capitalization.py | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just so i understand, the reset of these should be tacked in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, that's right! It just makes reviews a bit easier - as contributors fix a file, they remove it from this list, and then CI confirms that they, indeed, did fix the issue in that file