-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
75 lines (68 loc) · 1.71 KB
/
.pre-commit-config.yaml
File metadata and controls
75 lines (68 loc) · 1.71 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
65
66
67
68
69
70
71
72
73
74
75
default_language_version:
python: python3.13
# NOTE: Update in pyproject.toml as well
exclude: |
(?x)^(
\.git|
__pycache__|
\.venv|
schema.graphql
)
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.9.1
hooks:
- id: commitizen
# - id: commitizen-branch FIXME: Not working in PR
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--unsafe]
- id: debug-statements
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: name-tests-test
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
- repo: https://github.com/crate-ci/typos
rev: v1.31.1
hooks:
- id: typos
args: ["--exclude=CHANGELOG.md", "--force-exclude"]
# Run the Ruff linter.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.8
hooks:
# Linter
- id: ruff
types_or: [python, pyi, jupyter, toml]
args: [--fix, --exit-non-zero-on-fix]
# Formatter
- id: ruff-format
types_or: [python, pyi, jupyter, toml]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.398
hooks:
- id: pyright
additional_dependencies:
[
beartype,
einops,
jax,
jaxtyping,
optax,
pytest,
typing_extensions,
wadler_lindig,
]