-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
20 lines (20 loc) · 919 Bytes
/
.pre-commit-config.yaml
File metadata and controls
20 lines (20 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
repos:
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: sh -c 'if [ ! -x .venv/bin/python ]; then echo "Missing .venv. Run ./setup.sh (or uv sync --all-extras) first."; exit 1; fi; .venv/bin/python -m ruff check --fix'
language: system
types_or: [python, pyi]
pass_filenames: false
- id: ruff-format
name: ruff format
entry: sh -c 'if [ ! -x .venv/bin/python ]; then echo "Missing .venv. Run ./setup.sh (or uv sync --all-extras) first."; exit 1; fi; .venv/bin/python -m ruff format'
language: system
types_or: [python, pyi]
pass_filenames: false
- id: mypy
name: mypy
entry: sh -c 'if [ ! -x .venv/bin/python ]; then echo "Missing .venv. Run ./setup.sh (or uv sync --all-extras) first."; exit 1; fi; .venv/bin/python -m mypy axis'
language: system
pass_filenames: false