forked from FuzzyGrim/Yamtrack
-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
55 lines (55 loc) · 1.63 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
55 lines (55 loc) · 1.63 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
50
51
52
53
54
55
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
- repo: local
hooks:
- id: pip-audit
name: pip-audit
entry: scripts/audit_dependencies.sh
language: system
pass_filenames: false
files: ^(pyproject\.toml|uv\.lock|mcp_server/pyproject\.toml)$
- id: uv-lock-check
name: uv-lock-check
entry: uv lock --check
language: system
pass_filenames: false
files: ^(pyproject\.toml|uv\.lock|mcp_server/pyproject\.toml)$
- id: check-migrations
name: check-migrations
entry: uv run --no-sync python src/manage.py makemigrations --check
language: system
pass_filenames: false
always_run: true
- id: django-upgrade
name: django-upgrade
entry: uv run --no-sync django-upgrade
language: system
types: [python]
- id: ruff
name: ruff
entry: uv run --no-sync ruff check --fix
language: system
types: [python]
require_serial: true
- id: ruff-format
name: ruff-format
entry: uv run --no-sync ruff format
language: system
types: [python]
require_serial: true
- id: djlint-lint
name: djlint-lint
entry: uv run --no-sync djlint --lint
language: system
types: [html]
require_serial: true
- id: djlint-reformat
name: djlint-reformat
entry: uv run --no-sync djlint --reformat
language: system
types: [html]
require_serial: true