-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
35 lines (34 loc) · 785 Bytes
/
lefthook.yml
File metadata and controls
35 lines (34 loc) · 785 Bytes
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
pre-commit:
parallel: false
commands:
update-lockfiles:
run: uv lock
stage_fixed: true
format:
glob: "*.py"
run: uv run black {staged_files}
stage_fixed: true
lint:
glob: "*.py"
run: uv run flake8 {staged_files}
isort:
glob: "*.py"
run: uv run isort {staged_files}
stage_fixed: true
security:
run: make security
stage_fixed: true
actionlint:
glob: ".github/workflows/*.y*ml"
run: actionlint {staged_files}
pre-push:
parallel: true
commands:
tests:
run: make test
detect-secrets:
run: uv run python scripts/check_detect_secrets.py
validate-site:
run: uv run python scripts/validate_site_generation.py
actionlint:
run: actionlint