-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (74 loc) · 1.9 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (74 loc) · 1.9 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
76
77
78
79
80
default_language_version:
python: python3
exclude: |
(?x)^(
\.git|
__pycache__|
.*snap_test_.*\.py|
.+\/.+\/migrations\/.*|
\.venv|
helm/snapshots
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
args: [--unsafe]
exclude: ^helm/templates/
- id: debug-statements
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: detect-private-key
- id: name-tests-test
args: [--pytest-test-first]
- id: debug-statements
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: destroyed-symlinks
- id: detect-private-key
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=100]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.0.9
hooks:
# - id: helmlint
- id: gofmt
# 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, pyproject]
args: [--fix, --exit-non-zero-on-fix]
# Formatter
- id: ruff-format
types_or: [python, pyi, jupyter, pyproject]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.9
hooks:
- id: uv-lock
args: ["--locked", "--offline"]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.399
hooks:
- id: pyright
additional_dependencies:
[
beartype,
einops,
jax,
jaxtyping,
optax,
pytest,
typing_extensions,
wadler_lindig,
]