-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CI: flake8-pyi #47595
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
CI: flake8-pyi #47595
Changes from all commits
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 |
---|---|---|
|
@@ -229,3 +229,11 @@ repos: | |
entry: python scripts/validate_min_versions_in_sync.py | ||
language: python | ||
files: ^(ci/deps/actions-.*-minimum_versions\.yaml|pandas/compat/_optional\.py)$ | ||
- id: flake8-pyi | ||
name: flake8-pyi | ||
entry: flake8 --extend-ignore=E301,E302,E305,E701,E704 | ||
types: [pyi] | ||
language: python | ||
additional_dependencies: | ||
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. Could these be added to 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. I first tried to add I think flake8 supports file-specific ignores. If they support something along the lines 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. Thanks. That can be a followup PR if it works. |
||
- flake8==4.0.1 | ||
- flake8-pyi==22.5.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,9 +107,19 @@ ignore = | |
# false positives | ||
B301, | ||
# single-letter variables | ||
PDF023 | ||
PDF023, | ||
# "use 'pandas._testing' instead" in non-test code | ||
PDF025 | ||
PDF025, | ||
# If test must be a simple comparison against sys.platform or sys.version_info | ||
Y002, | ||
# Use "_typeshed.Self" instead of class-bound TypeVar | ||
Y019, | ||
# Docstrings should not be included in stubs | ||
Y021, | ||
# Use typing_extensions.TypeAlias for type aliases | ||
Y026, | ||
# Use "collections.abc.*" instead of "typing.*" (PEP 585 syntax) | ||
Y027 | ||
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. Y002: we have one |
||
exclude = | ||
doc/sphinxext/*.py, | ||
doc/build/*.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.
flake8 doesn't like black's formatting in pyi files