| 1 |
--- |
| 2 |
repos: |
| 3 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 4 |
rev: v0.15.12 |
| 5 |
hooks: |
| 6 |
- id: ruff |
| 7 |
name: ๐ถ Ruff lint |
| 8 |
args: |
| 9 |
- --fix |
| 10 |
|
| 11 |
- id: ruff-format |
| 12 |
name: ๐ถ Ruff format |
| 13 |
|
| 14 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 15 |
rev: v6.0.0 |
| 16 |
hooks: |
| 17 |
- id: check-added-large-files |
| 18 |
name: ๐๏ธ Check for added large files |
| 19 |
|
| 20 |
- id: check-ast |
| 21 |
name: ๐ Check python ast |
| 22 |
|
| 23 |
- id: check-builtin-literals |
| 24 |
name: ๐ง Check builtin type constructor use |
| 25 |
|
| 26 |
- id: check-case-conflict |
| 27 |
name: ๐ Check for case conflicts |
| 28 |
|
| 29 |
- id: check-docstring-first |
| 30 |
name: โน๏ธ Check docstring is first |
| 31 |
|
| 32 |
- id: check-executables-have-shebangs |
| 33 |
name: ๐ง Check that executables have shebangs |
| 34 |
|
| 35 |
- id: check-shebang-scripts-are-executable |
| 36 |
name: ๐ง Check that scripts with shebangs are executable |
| 37 |
|
| 38 |
- id: check-merge-conflict |
| 39 |
name: ๐ฅ Check for merge conflicts |
| 40 |
|
| 41 |
- id: check-symlinks |
| 42 |
name: ๐ Check for broken symlinks |
| 43 |
|
| 44 |
- id: check-toml |
| 45 |
name: โ
Check toml |
| 46 |
|
| 47 |
- id: check-xml |
| 48 |
name: โ
Check xml |
| 49 |
|
| 50 |
- id: check-yaml |
| 51 |
name: โ
Check yaml |
| 52 |
|
| 53 |
- id: debug-statements |
| 54 |
name: ๐ Debug statements (Python) |
| 55 |
|
| 56 |
- id: destroyed-symlinks |
| 57 |
name: ๐ Detect destroyed symlinks |
| 58 |
|
| 59 |
- id: detect-private-key |
| 60 |
name: ๐ต๏ธ Detect private key |
| 61 |
|
| 62 |
- id: end-of-file-fixer |
| 63 |
name: โฎ Fix End of Files |
| 64 |
|
| 65 |
- id: fix-byte-order-marker |
| 66 |
name: ๐ง Fix utf-8 byte order marker |
| 67 |
|
| 68 |
- id: name-tests-test |
| 69 |
name: ๐ Python tests naming |
| 70 |
args: |
| 71 |
- --pytest-test-first |
| 72 |
|
| 73 |
- id: no-commit-to-branch |
| 74 |
name: ๐ Don't commit to main branch |
| 75 |
|
| 76 |
- id: trailing-whitespace |
| 77 |
name: โ Trim trailing whitespace |
| 78 |
|
| 79 |
- repo: https://github.com/adrienverge/yamllint.git |
| 80 |
rev: v1.38.0 |
| 81 |
hooks: |
| 82 |
- id: yamllint |
| 83 |
name: ๐ Check YAML files with yamllint |
| 84 |
|
| 85 |
- repo: local |
| 86 |
hooks: |
| 87 |
- id: mypy |
| 88 |
name: ๐ Static type checking using mypy |
| 89 |
language: system |
| 90 |
types: |
| 91 |
- python |
| 92 |
entry: uv run --frozen mypy |
| 93 |
require_serial: true |
| 94 |
|
| 95 |
- id: pytest |
| 96 |
name: ๐งช Running tests and test coverage with pytest |
| 97 |
language: system |
| 98 |
types: |
| 99 |
- python |
| 100 |
entry: uv run --frozen pytest |
| 101 |
pass_filenames: false |