-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make .pre-commit-config.yaml similar to poetry repo
- Loading branch information
1 parent
72fc3d5
commit bf46a8c
Showing
39 changed files
with
297 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,80 @@ | ||
exclude: | | ||
(?x)( | ||
^tests/.*/fixtures/.* | ||
| ^src/poetry/core/_vendor | ||
) | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.9b0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: black | ||
exclude: ^src/poetry/core/_vendor | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: debug-statements | ||
- id: check-merge-conflict | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
- --no-ensure-ascii | ||
- --no-sort-keys | ||
- id: check-ast | ||
- id: debug-statements | ||
- id: check-docstring-first | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.9.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- id: python-check-mock-methods | ||
- id: python-use-type-annotations | ||
- id: python-check-blanket-type-ignore | ||
- id: python-check-blanket-noqa | ||
|
||
- repo: https://github.com/asottile/yesqa | ||
rev: v1.3.0 | ||
hooks: | ||
- id: yesqa | ||
additional_dependencies: &flake8_deps | ||
- flake8-annotations | ||
- flake8-bugbear | ||
- flake8-comprehensions | ||
- flake8-simplify | ||
- flake8-tidy-imports | ||
- flake8-use-fstring | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.910 | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.31.0 | ||
hooks: | ||
- id: mypy | ||
pass_filenames: false | ||
- id: pyupgrade | ||
args: | ||
- --py36-plus | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.9.3 | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
additional_dependencies: [toml] | ||
exclude: | | ||
(?x)( | ||
^.*/?setup\.py$ | ||
| ^src/poetry/core/_vendor | ||
| tests/.*\.pyi$ | ||
) | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.29.1 | ||
- repo: https://github.com/psf/black | ||
rev: 21.12b0 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --py36-plus | ||
exclude: ^src/poetry/core/_vendor | ||
- id: black | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude: | | ||
(?x)( | ||
^tests/.*/fixtures/.* | ||
| ^src/poetry/core/_vendor | ||
) | ||
- id: end-of-file-fixer | ||
exclude: | | ||
(?x)( | ||
^tests/.*/fixtures/.* | ||
| ^src/poetry/core/_vendor | ||
) | ||
- id: debug-statements | ||
exclude: ^src/poetry/core/_vendor | ||
|
||
- id: check-json | ||
exclude: ^src/poetry/core/_vendor | ||
- id: flake8 | ||
additional_dependencies: *flake8_deps | ||
|
||
- id: pretty-format-json | ||
exclude: ^src/poetry/core/_vendor | ||
args: | ||
- --no-sort-keys | ||
- --autofix | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.931 | ||
hooks: | ||
- id: mypy | ||
pass_filenames: false |
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
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
Oops, something went wrong.