|
1 | 1 | repos: |
2 | 2 | - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v4.6.0 |
| 3 | + rev: v5.0.0 |
4 | 4 | hooks: |
5 | 5 | - id: check-yaml |
6 | 6 | - id: end-of-file-fixer |
7 | 7 | - id: trailing-whitespace |
8 | 8 | - id: no-commit-to-branch |
9 | 9 | args: ["--branch", "master", "--branch", "main"] |
| 10 | + - id: check-added-large-files |
| 11 | + - id: check-json |
| 12 | + - id: check-toml |
10 | 13 | - repo: https://github.com/psf/black |
11 | | - rev: 24.4.0 |
| 14 | + rev: 24.2.0 |
12 | 15 | hooks: |
13 | 16 | - id: black |
| 17 | + language_version: python3.13 |
| 18 | +- repo: https://github.com/pycqa/isort |
| 19 | + rev: 6.0.1 |
| 20 | + hooks: |
| 21 | + - id: isort |
| 22 | +- repo: https://github.com/pycqa/flake8 |
| 23 | + rev: 7.0.0 |
| 24 | + hooks: |
| 25 | + - id: flake8 |
| 26 | + additional_dependencies: [flake8-bugbear>=24.2.6] |
| 27 | + args: [ |
| 28 | + "--max-line-length=99", |
| 29 | + "--extend-ignore=E203,W503,E501,C901", # Ignore style errors that conflict with Black, line length, and complexity |
| 30 | + "--exclude=.git,__pycache__,build,dist", |
| 31 | + "--per-file-ignores=*/__init__.py:F401" |
| 32 | + ] |
14 | 33 | - repo: https://github.com/codespell-project/codespell |
15 | 34 | rev: v2.2.6 |
16 | 35 | hooks: |
17 | | - - id: codespell |
18 | | -- repo: https://github.com/pre-commit/mirrors-mypy |
19 | | - rev: v1.9.0 |
20 | | - hooks: |
21 | | - - id: mypy |
22 | | - additional_dependencies: [types-requests, types-six, types-urllib3, types-mock] |
| 36 | + - id: codespell |
| 37 | + args: [--ignore-words=.codespell-ignore] |
| 38 | + exclude: > |
| 39 | + (?x)^( |
| 40 | + .*\.lock| |
| 41 | + \.git/.*| |
| 42 | + .*/build/.* |
| 43 | + )$ |
| 44 | +- repo: https://github.com/pre-commit/mirrors-mypy |
| 45 | + rev: v1.9.0 |
| 46 | + hooks: |
| 47 | + - id: mypy |
| 48 | + additional_dependencies: |
| 49 | + - types-requests>=2.31.0.20240311 |
| 50 | + - types-six>=1.16.21.20240311 |
| 51 | + - types-mock>=5.1.0.20240311 |
| 52 | + - types-urllib3 |
| 53 | + exclude: ^(docs/|tests/) |
0 commit comments