-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (37 loc) · 1.05 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
41 lines (37 loc) · 1.05 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
# See https://pre-commit.com for more information
# Install hooks:
# uv run pre-commit install
# uv run pre-commit install --hook-type pre-push
repos:
- repo: local
hooks:
# Pre-commit stage: fast checks on every commit
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types: [python]
pass_filenames: true
stages: [pre-commit]
- id: ruff-check
name: ruff check
entry: uv run ruff check --fix
language: system
types: [python]
pass_filenames: true
stages: [pre-commit]
- id: pytest-quick
name: pytest (quick)
entry: uv run pytest -q -m "not slow"
language: system
pass_filenames: false
stages: [pre-commit]
always_run: true
# Pre-push stage: full CI smoke test
- id: ci-smoke
name: CI smoke test
entry: bash scripts/ci_smoke.sh
language: system
pass_filenames: false
stages: [pre-push]
always_run: true