-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 842 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 842 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
default_install_hook_types: [pre-commit, pre-push]
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.8
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.2
hooks:
- id: pip-compile
name: pip-compile doc/requirements.txt
args: [pyproject.toml, -o, doc/requirements.txt, --group, docs, --upgrade, --generate-hashes, --universal, --python-version=3.10]
files: 'pyproject.toml'
stages: [pre-commit]
pass_filenames: false
- repo: local
hooks:
- id: pytest
name: Run pytest
entry: uv run --frozen pytest --exitfirst
language: python
types: [python]
stages: [pre-push]
pass_filenames: false
always_run: true