|
| 1 | +ci: |
| 2 | + autofix_prs: false |
| 3 | + |
1 | 4 | repos: |
2 | | - - repo: https://github.com/psf/black |
3 | | - rev: 21.11b1 |
| 5 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 6 | + rev: v4.1.0 |
4 | 7 | hooks: |
5 | | - - id: black |
| 8 | + - id: trailing-whitespace |
| 9 | + - id: end-of-file-fixer |
| 10 | + exclude: ^.*\.egg-info/ |
| 11 | + - id: check-merge-conflict |
| 12 | + - id: check-case-conflict |
| 13 | + - id: check-json |
| 14 | + - id: check-toml |
| 15 | + - id: check-yaml |
| 16 | + - id: pretty-format-json |
| 17 | + args: [--autofix, --no-ensure-ascii, --no-sort-keys] |
| 18 | + - id: check-ast |
| 19 | + - id: debug-statements |
| 20 | + - id: check-docstring-first |
6 | 21 |
|
7 | | - - repo: https://gitlab.com/pycqa/flake8 |
8 | | - rev: 3.9.2 |
| 22 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 23 | + rev: v1.9.0 |
9 | 24 | hooks: |
10 | | - - id: flake8 |
| 25 | + - id: python-check-mock-methods |
| 26 | + - id: python-use-type-annotations |
| 27 | + - id: python-check-blanket-type-ignore |
| 28 | + - id: python-check-blanket-noqa |
11 | 29 |
|
12 | | - - repo: https://github.com/timothycrosley/isort |
13 | | - rev: 5.10.1 |
| 30 | + - repo: https://github.com/asottile/yesqa |
| 31 | + rev: v1.3.0 |
14 | 32 | hooks: |
15 | | - - id: isort |
16 | | - additional_dependencies: [toml] |
17 | | - exclude: ^.*/?setup\.py$ |
| 33 | + - id: yesqa |
| 34 | + additional_dependencies: &flake8_deps |
| 35 | + - flake8-annotations==2.7.0 |
| 36 | + - flake8-broken-line==0.4.0 |
| 37 | + - flake8-bugbear==21.9.2 |
| 38 | + - flake8-comprehensions==3.7.0 |
| 39 | + - flake8-eradicate==1.2.0 |
| 40 | + - flake8-no-pep420==1.2.0 |
| 41 | + - flake8-quotes==3.3.1 |
| 42 | + - flake8-simplify==0.14.2 |
| 43 | + - flake8-tidy-imports==4.5.0 |
| 44 | + - flake8-type-checking==1.1.0 |
| 45 | + - flake8-typing-imports==1.11.0 |
| 46 | + - flake8-use-fstring==1.3 |
| 47 | + - pep8-naming==0.12.1 |
18 | 48 |
|
19 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
20 | | - rev: v4.0.1 |
| 49 | + - repo: https://github.com/asottile/pyupgrade |
| 50 | + rev: v2.31.1 |
21 | 51 | hooks: |
22 | | - - id: trailing-whitespace |
| 52 | + - id: pyupgrade |
| 53 | + args: [--py37-plus] |
| 54 | + exclude: ^(install|get)-poetry.py$ |
| 55 | + |
| 56 | + - repo: https://github.com/pycqa/isort |
| 57 | + rev: 5.10.1 |
| 58 | + hooks: |
| 59 | + - id: isort |
| 60 | + name: "isort (python)" |
| 61 | + types: [python] |
| 62 | + args: [--add-import, from __future__ import annotations] |
23 | 63 | exclude: | |
24 | 64 | (?x)( |
25 | | - ^tests/.*/fixtures/.* |
| 65 | + ^(install|get)-poetry.py$ |
| 66 | + | ^src/poetry/__init__.py$ |
26 | 67 | ) |
27 | | - - id: end-of-file-fixer |
28 | | - exclude: ^tests/.*/fixtures/.* |
29 | | - - id: debug-statements |
| 68 | + - id: isort |
| 69 | + name: "isort (pyi)" |
| 70 | + types: [pyi] |
| 71 | + args: [--lines-after-imports, "-1"] |
| 72 | + |
| 73 | + - repo: https://github.com/psf/black |
| 74 | + rev: 22.3.0 |
| 75 | + hooks: |
| 76 | + - id: black |
| 77 | + |
| 78 | + - repo: https://github.com/pycqa/flake8 |
| 79 | + rev: 4.0.1 |
| 80 | + hooks: |
| 81 | + - id: flake8 |
| 82 | + additional_dependencies: *flake8_deps |
| 83 | + |
| 84 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 85 | + rev: v0.942 |
| 86 | + hooks: |
| 87 | + - id: mypy |
| 88 | + pass_filenames: false |
| 89 | + additional_dependencies: |
| 90 | + - types-requests |
| 91 | + |
| 92 | + - repo: https://github.com/pre-commit/pre-commit |
| 93 | + rev: v2.18.1 |
| 94 | + hooks: |
| 95 | + - id: validate_manifest |
0 commit comments