|
1 | 1 | repos: |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | + rev: v4.0.1 |
| 4 | + hooks: |
| 5 | + - id: trailing-whitespace |
| 6 | + exclude: ^tests/.*/fixtures/.* |
| 7 | + - id: end-of-file-fixer |
| 8 | + exclude: ^tests/.*/fixtures/.* |
| 9 | + - id: debug-statements |
| 10 | + |
| 11 | + - repo: https://github.com/hadialqattan/pycln |
| 12 | + rev: v2.1.1 |
| 13 | + hooks: |
| 14 | + - id: pycln |
| 15 | + args: [--all] |
| 16 | + |
2 | 17 | - repo: https://github.com/psf/black |
3 | | - rev: 21.9b0 |
| 18 | + rev: 22.6.0 |
4 | 19 | hooks: |
5 | 20 | - id: black |
6 | 21 |
|
7 | | - - repo: https://gitlab.com/pycqa/flake8 |
8 | | - rev: 3.9.2 |
| 22 | + - repo: https://github.com/pycqa/flake8 |
| 23 | + rev: 4.0.1 |
9 | 24 | hooks: |
10 | 25 | - id: flake8 |
| 26 | + additional_dependencies: &flake8_deps |
| 27 | + - flake8-broken-line==0.4.0 |
| 28 | + - flake8-bugbear==22.7.1 |
| 29 | + - flake8-comprehensions==3.10.0 |
| 30 | + - flake8-eradicate==1.2.1 |
| 31 | + - flake8-quotes==3.3.1 |
| 32 | + - flake8-simplify==0.19.2 |
| 33 | + - flake8-tidy-imports==4.8.0 |
| 34 | + - flake8-type-checking==2.0.3 |
| 35 | + - flake8-typing-imports==1.12.0 |
| 36 | + - flake8-use-fstring==1.3 |
| 37 | + - pep8-naming==0.13.1 |
| 38 | + |
| 39 | + - repo: https://github.com/asottile/yesqa |
| 40 | + rev: v1.3.0 |
| 41 | + hooks: |
| 42 | + - id: yesqa |
| 43 | + additional_dependencies: *flake8_deps |
11 | 44 |
|
12 | | - - repo: https://github.com/timothycrosley/isort |
13 | | - rev: 5.9.3 |
| 45 | + - repo: https://github.com/pycqa/isort |
| 46 | + rev: 5.10.1 |
14 | 47 | hooks: |
15 | 48 | - id: isort |
16 | | - additional_dependencies: [toml] |
17 | | - exclude: ^.*/?setup\.py$ |
| 49 | + args: [--add-import, from __future__ import annotations] |
18 | 50 |
|
19 | 51 | - repo: https://github.com/asottile/pyupgrade |
20 | | - rev: v2.29.0 |
| 52 | + rev: v2.37.3 |
21 | 53 | hooks: |
22 | 54 | - id: pyupgrade |
23 | 55 |
|
24 | | - - repo: https://github.com/pre-commit/pre-commit-hooks |
25 | | - rev: v4.0.1 |
| 56 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 57 | + rev: v0.971 |
26 | 58 | hooks: |
27 | | - - id: trailing-whitespace |
28 | | - exclude: ^tests/.*/fixtures/.* |
29 | | - - id: end-of-file-fixer |
30 | | - exclude: ^tests/.*/fixtures/.* |
31 | | - - id: debug-statements |
| 59 | + - id: mypy |
| 60 | + pass_filenames: false |
| 61 | + additional_dependencies: |
| 62 | + - pytest>=7.1.2 |
0 commit comments