-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
68 lines (60 loc) · 2.22 KB
/
.pre-commit-config.yaml
File metadata and controls
68 lines (60 loc) · 2.22 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
67
68
default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: local
hooks:
- id: harness-maintenance-check
name: harness maintenance check
entry: scripts/harness-maintenance.sh check --threshold 10
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: python-ruff-format
name: python ruff format
entry: uv run --project parakeet-stt-daemon ruff format --config parakeet-stt-daemon/pyproject.toml
language: system
files: ^parakeet-stt-daemon/.*\.pyi?$
stages: [pre-commit]
- id: python-ruff-check
name: python ruff check
entry: uv run --project parakeet-stt-daemon ruff check --fix --config parakeet-stt-daemon/pyproject.toml
language: system
files: ^parakeet-stt-daemon/.*\.pyi?$
stages: [pre-commit]
- id: python-ty-check
name: python ty check
entry: ty check --project parakeet-stt-daemon --error-on-warning
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: rust-fmt
name: rust cargo fmt
entry: cargo fmt --manifest-path parakeet-ptt/Cargo.toml
language: system
pass_filenames: false
files: ^parakeet-ptt/(Cargo\.toml|Cargo\.lock|src/.*\.rs)$
stages: [pre-commit]
- id: python-pytest
name: python pytest
entry: uv run --project parakeet-stt-daemon pytest -q
language: system
pass_filenames: false
files: ^parakeet-stt-daemon/(pyproject\.toml|tests/.*\.py|src/.*\.py)$
stages: [pre-push]
- id: rust-clippy
name: rust cargo clippy
entry: cargo clippy --manifest-path parakeet-ptt/Cargo.toml --all-targets --all-features -- -D warnings
language: system
pass_filenames: false
files: ^parakeet-ptt/(Cargo\.toml|Cargo\.lock|src/.*\.rs)$
stages: [pre-push]
- id: rust-test
name: rust cargo test
entry: cargo test --manifest-path parakeet-ptt/Cargo.toml -q
language: system
pass_filenames: false
files: ^parakeet-ptt/(Cargo\.toml|Cargo\.lock|src/.*\.rs)$
stages: [pre-push]