-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (43 loc) · 1.25 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (43 loc) · 1.25 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
42
43
44
45
46
47
48
49
default_install_hook_types:
- pre-commit
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/isort
rev: 7.0.0
hooks:
- id: isort
name: "sort imports"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.8
hooks:
- id: ruff-check
name: "ruff linter (with fixes)"
args: [ "--fix", "--show-fixes" ]
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.16
hooks:
- id: uv-sync
name: "synchronize pyproject.toml dependencies"
args: [ "--locked", "--all-packages" ]
- id: uv-lock
name: "ensure uv.lock file is up-to-date"
- id: uv-export
name: "export requirements.txt"
args: [ "--frozen", "--no-dev", "--no-hashes", "-o", "requirements.txt" ]
- id: uv-export
name: "export requirements-dev.txt"
args: [ "--frozen", "--only-dev", "--no-hashes", "-o", "requirements-dev.txt" ]
#- repo: https://github.com/pypa/pip-audit
# rev: v2.10.0
# hooks:
# - id: pip-audit
# name: "audit dependencies"
# args: [ "-r", "requirements.txt", "-r", "requirements-dev.txt" ]
#ci:
# skip: [ pip-audit ]