-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (34 loc) · 1.14 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.9.7"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --output-format, concise]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.2
hooks:
- id: pip-compile
name: Compile Prod
args:
[pyproject.toml, -o, requirements/prod.txt, --all-extras, --no-header]
files: pyproject.toml
- id: pip-compile
name: Compile Dev
args: [requirements/dev.in, -o, requirements/dev.txt, --no-header]
files: ^requirements/.*\.(in|txt)
- id: pip-compile
name: Compile Test
args: [requirements/test.in, -o, requirements/test.txt, --no-header]
files: ^requirements/.*\.(in|txt)
- id: pip-compile
name: Compile Doc
args: [requirements/doc.in, -o, requirements/doc.txt, --no-header]
files: ^requirements/.*\.(in|txt)