Debian Codegraph @

.pre-commit-config.yaml

raw
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