-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 879 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 879 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
---
repos:
- repo: local
hooks:
- id: run-checks
name: Run Checks
description: Ensure that all checks pass before committing
language: system
always_run: true
pass_filenames: false
entry: uv run invoke check
# TODO @cyberops7: don't have this silently fail
# We don't want it to block commits, but we do want to know if it fails
- repo: local
hooks:
- id: run-tests
name: Run Unit Tests
description: Check unit test success/coverage (but allow commits with failures)
language: system
always_run: true
pass_filenames: false
entry: uv run invoke test --allow-failure
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.18 # uv version
hooks:
- id: uv-lock
description: Ensure uv's lock file matches deps in pyproject.toml