-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI: update isort and flake8 for pre-commit and format files (#1037)
Co-authored-by: Andrew Svetlov <[email protected]>
- Loading branch information
1 parent
41b73b9
commit 8c30c82
Showing
13 changed files
with
121 additions
and
121 deletions.
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