|
| 1 | +default_language_version: |
| 2 | + python: python3 |
1 | 3 | repos: |
2 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
3 | | - rev: v4.5.0 |
4 | | - hooks: |
5 | | - - id: trailing-whitespace |
6 | | - - id: end-of-file-fixer |
7 | | - - id: check-yaml |
8 | | - - id: check-added-large-files |
9 | | - language_version: python3 |
| 4 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 5 | + rev: v5.0.0 |
| 6 | + hooks: |
| 7 | + - id: check-added-large-files |
| 8 | + - id: check-ast |
| 9 | + - id: check-builtin-literals |
| 10 | + - id: check-byte-order-marker |
| 11 | + - id: check-case-conflict |
| 12 | + - id: check-docstring-first |
| 13 | + - id: check-executables-have-shebangs |
| 14 | + - id: check-json |
| 15 | + - id: check-merge-conflict |
| 16 | + - id: check-shebang-scripts-are-executable |
| 17 | + - id: check-symlinks |
| 18 | + - id: check-yaml |
| 19 | + - id: debug-statements |
| 20 | + - id: destroyed-symlinks |
| 21 | + - id: end-of-file-fixer |
| 22 | + - id: file-contents-sorter |
| 23 | + - id: trailing-whitespace |
10 | 24 |
|
| 25 | + - repo: https://github.com/astral-sh/ruff-pre-commit |
| 26 | + rev: v0.8.6 |
| 27 | + hooks: |
| 28 | + - id: ruff |
| 29 | + args: [--fix, --exit-non-zero-on-fix] |
| 30 | + - id: ruff-format |
11 | 31 |
|
| 32 | + - repo: https://github.com/codespell-project/codespell |
| 33 | + rev: v2.3.0 |
| 34 | + hooks: |
| 35 | + - id: codespell |
| 36 | + language: python |
| 37 | + types: [text] |
| 38 | + entry: codespell --ignore-words=.codespell-ignore --check-filenames |
| 39 | + exclude: uv.lock |
12 | 40 |
|
13 | | -- repo: https://github.com/psf/black |
14 | | - rev: 23.11.0 |
15 | | - hooks: |
16 | | - - id: black |
17 | | - args: [--safe, --line-length=120] |
| 41 | + - repo: https://github.com/pre-commit/mirrors-mypy |
| 42 | + rev: v1.14.1 |
| 43 | + hooks: |
| 44 | + - id: mypy |
| 45 | + name: mypy |
| 46 | + pass_filenames: false |
| 47 | + args: |
| 48 | + [ |
| 49 | + --strict-equality, |
| 50 | + --disallow-untyped-calls, |
| 51 | + --disallow-untyped-defs, |
| 52 | + --disallow-incomplete-defs, |
| 53 | + --disallow-any-generics, |
| 54 | + --check-untyped-defs, |
| 55 | + --disallow-untyped-decorators, |
| 56 | + --warn-redundant-casts, |
| 57 | + --warn-unused-ignores, |
| 58 | + --no-warn-no-return, |
| 59 | + --warn-unreachable, |
| 60 | + ] |
| 61 | + additional_dependencies: ["types-requests", "types-PyYAML"] |
18 | 62 |
|
19 | | -- repo: https://github.com/pycqa/isort |
20 | | - rev: 5.12.0 |
21 | | - hooks: |
22 | | - - id: isort |
23 | | - args: [--profile=black] |
| 63 | + - repo: local |
| 64 | + hooks: |
| 65 | + - id: pylint |
| 66 | + name: pylint |
| 67 | + entry: pylint |
| 68 | + language: python |
| 69 | + additional_dependencies: ["pylint"] |
| 70 | + types: [python] |
| 71 | + args: ["--disable=all", "--enable=missing-docstring,unused-argument"] |
| 72 | + exclude: 'test_\.py$' |
0 commit comments