-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (72 loc) · 1.95 KB
/
.pre-commit-config.yaml
File metadata and controls
86 lines (72 loc) · 1.95 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
exclude: '^.*/migrations/.*$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/adamchainz/djade-pre-commit
rev: "1.9.0"
hooks:
- id: djade
args: [--target-version, "5.1"] # Use current Django version
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "1.7.1"
hooks:
- id: tox-ini-fmt
args: [ "-p", "lint" ]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.18.1"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff
- id: ruff-format
args:
- --check
- repo: https://github.com/saxix/pch
rev: '0.5'
hooks:
- id: check-missed-migrations
args:
- src
stages: [ pre-commit ]
additional_dependencies: [ setuptools ]
- id: check-untracked
args:
- src
- tests
stages: [ pre-push ]
- id: check-forbidden
args:
- -i
- "pyproject.toml"
- -p
- "/\\[tool.uv.sources\\]/"
stages: [ pre-push ]
- id: check-tailwind
name: check tailwind CSS ready for production
files: src/hope_live/theme/static_src/src/styles.scss
args:
- -d
- src/hope_live/theme/static/css/
# - id: check-minimized
# name: check missing minimized javascript
# files: (\.js)$
# exclude: (\.min\.js)$
# args:
# - -i
# - "src/hope_live/theme/static_src/*.js"
# - -i
# - "src/hope_live/theme/static/unfold/*"
# - -i
# - "docs/*"
- id: check-forbidden
name: check pyproject to avoid editable sources/deps
files: pyproject.toml
language: python
args:
- -p
- /\[tool\.uv\.sources\]\s/s