-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (43 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (43 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 0839f92796ae388643a08a21640a029b322be5c2 # v0.15.2
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: 5387279b3b4c24822c0f86d4df4f28b37e3e8992 # v0.21.0
hooks:
- id: markdownlint-cli2
- repo: https://github.com/PyCQA/bandit
rev: ea0d187d78b2e6365e35f676d2eb9b1be264c091 # 1.9.2
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: ["bandit[toml]"]
- repo: local
hooks:
- id: pyright
name: pyright
entry: uv run --no-sync pyright src/
language: system
types: [python]
pass_filenames: false
- id: interrogate
name: interrogate
entry: uv run --no-sync interrogate src/
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/commitizen-tools/commitizen
rev: 7179a42b3544e953e3683a670056ad385892365d # v4.13.8
hooks:
- id: commitizen
stages: [commit-msg]