-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (60 loc) · 1.72 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (60 loc) · 1.72 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
repos:
- repo: builtin
hooks:
- id: check-added-large-files
exclude: \.(cif|pdb|ccp4|mtz|mrc)$
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: \.(cif|pdb|ccp4|mtz|mrc)$
- repo: local
hooks:
- id: sort_pyproject
name: sort pyproject.toml
entry: toml-sort
args: ["-i", "--sort-table-keys", "--sort-inline-tables"]
language: python
files: ^pyproject\.toml$
additional_dependencies:
- toml-sort==0.24.3
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.9
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
# Run the linter.
- id: ruff-check
args: [--verbose, --fix]
# Run the formatter.
- id: ruff-format
args: [--verbose]
- repo: local
hooks:
- id: ty-boltz
name: ty (boltz environment)
entry: bash -c 'pixi run -e boltz-dev ty check "$@"' --
language: system
types: [python]
pass_filenames: true
exclude: (real_space_density|protenix|rf3|rfd3)
priority: 50
- id: ty-rf3
name: ty (rf3 environment)
entry: bash -c 'pixi run -e rf3-dev ty check "$@"' --
language: system
types: [python]
pass_filenames: true
files: (rf3|rfd3)
priority: 50
- id: ty-protenix
name: ty (protenix environment)
entry: bash -c 'pixi run -e protenix-dev ty check "$@"' --
language: system
types: [python]
pass_filenames: true
files: protenix
priority: 50