-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (46 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (46 loc) · 1.29 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
repos:
- repo: local
hooks:
- id: ruff
name: ruff
entry: ruff check
args: ["--fix", "--output-format=full"]
files: "(.py$)|(.*.ipynb$)"
language: system
- id: ruff-format
name: ruff-format
entry: ruff format
language: system
files: "(.py$)|(.*.ipynb$)"
- id: mypy
name: mypy
language: python
entry: mypy --install-types --non-interactive
files: ^numpyro/
- id: ty
name: ty check
language: python
entry: ty
args: [check, --config-file, ty.toml]
pass_filenames: false
always_run: true
additional_dependencies: [ty]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: debug-statements
- id: check-yaml
- id: check-added-large-files
exclude: notebooks/
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
stages: [pre-commit, commit-msg]
args: [--ignore-words-list, "Teh,aas,ans,dout", --check-filenames, --skip, "*.ipynb"]
# Format yaml files
- repo: https://github.com/google/yamlfmt
rev: v0.20.0
hooks:
- id: yamlfmt
args: [-formatter, retain_line_breaks=true]