-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (43 loc) · 1.36 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
43 lines (43 loc) · 1.36 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
# Build gates: structural gate + ruff on every commit. Run `pre-commit install`
# once per clone (bin/setup does it when this is a git repo). `bin/py` picks the
# venv, so a contributor using uv or conda needs no edit here. CI
# (.github/workflows/guards.yml) is the unskippable backstop.
repos:
- repo: local
hooks:
- id: pf-guards
name: pf-core structural gate
entry: bin/py -m pf_core.guards
language: system
pass_filenames: false
always_run: true
- id: ruff
name: ruff
entry: bin/py -m ruff check src tests
language: system
pass_filenames: false
always_run: true
- id: ruff-format
name: ruff format
entry: bin/py -m ruff format --check src tests
language: system
pass_filenames: false
always_run: true
- id: mypy
name: mypy
entry: bin/py -m mypy
language: system
pass_filenames: false
always_run: true
- id: deckwright-layers
name: deckwright import-layering
entry: bin/py bin/check-layers
language: system
pass_filenames: false
always_run: true
- id: deckwright-framework
name: deckwright framework-first (pf-core)
entry: bin/py bin/check-framework
language: system
pass_filenames: false
always_run: true