-
-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (64 loc) · 1.65 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (64 loc) · 1.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
default_language_version:
python: "3.13"
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff
name: ruff
entry: uv run ruff check --fix
language: system
types: [python]
- id: ruff-format
name: ruff-format
entry: uv run ruff format
language: system
types: [python]
- repo: https://github.com/crate-ci/typos
rev: v1.44.0
hooks:
- id: typos
- repo: https://github.com/pycontribs/mirrors-prettier
rev: v3.6.2
hooks:
- id: prettier
exclude: ".all-contributorsrc"
- repo: https://github.com/ComPWA/taplo-pre-commit
rev: v0.9.3
hooks:
- id: taplo-format
exclude: "uv.lock"
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run --all-groups mypy
language: system
exclude: "test_decimal_constraints|examples/fields/test_example_2"
types: [python]
require_serial: true
- id: pyright
name: pyright
exclude: "tests"
language: system
entry: uv run --all-groups pyright
types: [python]
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.2
hooks:
- id: sphinx-lint