-
Notifications
You must be signed in to change notification settings - Fork 86
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 CI: update isort and flake8 for pre-commit and format files #1037
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f40d9c2
Fix CI
paul-nameless 59c1e4f
Merge branch 'master' into fix-ci
asvetlov 04ca816
Fix mypy errors. Add return statements instead of ignore comments
paul-nameless 08241d9
Silence flake8-requirements warnings for aiohttp_session/redis_storag…
paul-nameless 61c4c47
Add build folder to ignore flake8-requirements
paul-nameless 399fd43
Fix mypy errors. It does not respect ignore when multilined
paul-nameless c2af5c5
Add ignore flake8 rules instead of changing asserts
paul-nameless File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,85 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: changelogs-rst | ||
name: changelog filenames | ||
language: fail | ||
entry: >- | ||
Changelog files must be named | ||
####.(bugfix|feature|removal|doc|misc)(.#)?(.rst)? | ||
exclude: >- | ||
^CHANGES/(\.TEMPLATE\.rst|\.gitignore|\d+\.(bugfix|feature|removal|doc|misc)(\.\d+)?(\.rst)?|README\.rst)$ | ||
files: ^CHANGES/ | ||
- id: changelogs-user-role | ||
name: Changelog files should use a non-broken :user:`name` role | ||
language: pygrep | ||
entry: :user:([^`]+`?|`[^`]+[\s,]) | ||
pass_filenames: true | ||
types: [file, rst] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.3.0' | ||
hooks: | ||
- id: check-merge-conflict | ||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.4.0 | ||
hooks: | ||
- id: yesqa | ||
- repo: https://github.com/PyCQA/isort | ||
rev: '5.10.1' | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: '22.10.0' | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: 'v4.3.0' | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: >- | ||
^docs/[^/]*\.svg$ | ||
- id: requirements-txt-fixer | ||
exclude: >- | ||
^requirements/constraints[.]txt$ | ||
- id: trailing-whitespace | ||
- id: file-contents-sorter | ||
files: | | ||
CONTRIBUTORS.txt| | ||
docs/spelling_wordlist.txt| | ||
.gitignore| | ||
.gitattributes | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-xml | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: check-added-large-files | ||
- id: check-symlinks | ||
- id: fix-byte-order-marker | ||
- id: fix-encoding-pragma | ||
args: ['--remove'] | ||
- id: detect-aws-credentials | ||
args: ['--allow-missing-credentials'] | ||
- id: detect-private-key | ||
exclude: ^examples/ | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: 'v3.1.0' | ||
hooks: | ||
- id: pyupgrade | ||
args: ['--py38-plus'] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: '5.0.4' | ||
hooks: | ||
- id: flake8 | ||
exclude: "^docs/" | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup | ||
rev: v1.0.1 | ||
hooks: | ||
- id: rst-linter | ||
files: >- | ||
^[^/]+[.]rst$ | ||
exclude: >- | ||
^CHANGES\.rst$ | ||
- repo: local | ||
hooks: | ||
- id: changelogs-rst | ||
name: changelog filenames | ||
language: fail | ||
entry: >- | ||
Changelog files must be named | ||
####.(bugfix|feature|removal|doc|misc)(.#)?(.rst)? | ||
exclude: >- | ||
^CHANGES/(\.TEMPLATE\.rst|\.gitignore|\d+\.(bugfix|feature|removal|doc|misc)(\.\d+)?(\.rst)?|README\.rst)$ | ||
files: ^CHANGES/ | ||
- id: changelogs-user-role | ||
name: Changelog files should use a non-broken :user:`name` role | ||
language: pygrep | ||
entry: :user:([^`]+`?|`[^`]+[\s,]) | ||
pass_filenames: true | ||
types: [file, rst] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.3.0" | ||
hooks: | ||
- id: check-merge-conflict | ||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.4.0 | ||
hooks: | ||
- id: yesqa | ||
- repo: https://github.com/PyCQA/isort | ||
rev: "5.13.2" | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: "22.10.0" | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.3.0" | ||
hooks: | ||
- id: end-of-file-fixer | ||
exclude: >- | ||
^docs/[^/]*\.svg$ | ||
- id: requirements-txt-fixer | ||
exclude: >- | ||
^requirements/constraints[.]txt$ | ||
- id: trailing-whitespace | ||
- id: file-contents-sorter | ||
files: | | ||
CONTRIBUTORS.txt| | ||
docs/spelling_wordlist.txt| | ||
.gitignore| | ||
.gitattributes | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-xml | ||
- id: check-executables-have-shebangs | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: check-added-large-files | ||
- id: check-symlinks | ||
- id: fix-byte-order-marker | ||
- id: fix-encoding-pragma | ||
args: ["--remove"] | ||
- id: detect-aws-credentials | ||
args: ["--allow-missing-credentials"] | ||
- id: detect-private-key | ||
exclude: ^examples/ | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: "v3.1.0" | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: "7.1.1" | ||
hooks: | ||
- id: flake8 | ||
exclude: "^docs/" | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup | ||
rev: v1.0.1 | ||
hooks: | ||
- id: rst-linter | ||
files: >- | ||
^[^/]+[.]rst$ | ||
exclude: >- | ||
^CHANGES\.rst$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I suspect it should be added to the requirements file for our testing. Though aioredis is archived, so we should also migrate to redis/valkey now.