-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
25 lines (24 loc) · 722 Bytes
/
lefthook.yml
File metadata and controls
25 lines (24 loc) · 722 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
pre-commit:
parallel: false
commands:
python-format:
glob: "{python,tests}/**/*.py"
run: uv run --group dev poe python-format-hook
python-lint:
glob: "{python,tests}/**/*.py"
run: uv run ruff check {staged_files}
python-types:
glob: "{python,tests}/**/*.py"
run: uv run ty check python tests
rust-format:
glob: "crates/**/*.rs"
run: uv run --group dev poe rust-fmt-hook
manifest-toml:
glob: "{cpm.toml,cpm-reference.toml,scripts/check_committed_toml.py}"
run: uv run --group dev poe manifests-check
pre-push:
commands:
rust-lint:
run: cargo clippy --workspace -- -D warnings
tests:
run: uv run --group dev poe test