-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (50 loc) · 1.41 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (50 loc) · 1.41 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: \.csv$
- id: end-of-file-fixer
exclude: \.csv$
- id: check-yaml
- id: check-added-large-files
args: ["--maxkb=1000"]
- id: check-merge-conflict
- id: check-toml
- repo: local
hooks:
- id: check-claims
name: Check claim discipline
entry: uv run python scripts/check_claims.py
language: system
pass_filenames: false
always_run: true
files: \.(md|py)$
- id: check-links
name: Check internal links
entry: uv run python scripts/check_links.py
language: system
pass_filenames: false
always_run: true
files: \.md$
- id: check-erc
name: Check ERC data schema
entry: uv run python analysis/validate_erc_data.py
language: system
pass_filenames: false
always_run: true
files: data/.*\.csv$
- id: check-stubs
name: Check simulation placeholders
entry: make check-stubs
language: system
pass_filenames: false
always_run: true
files: simulations/.*\.(mx3|mif)$
- id: pytest
name: Run pytest
entry: uv run pytest
language: system
pass_filenames: false
always_run: true
files: \.(py|mx3|mif|csv)$