-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
89 lines (89 loc) · 2.85 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
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
87
88
89
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: ^assets/dist
- id: end-of-file-fixer
exclude: ^assets/dist
- id: check-builtin-literals
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
- repo: local
hooks:
- id: rustywind
name: rustywind Tailwind CSS class linter
language: node
additional_dependencies:
entry: rustywind
args: [--write]
files: ^templates
types_or: [html]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.17.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.6.2"
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.9.1
hooks:
- id: eslint
files: ^assets
exclude: ^assets/dist
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.34.2
hooks:
- id: djlint-django
args: ["--lint", "--reformat"]
exclude: ^assets
- repo: https://github.com/hadolint/hadolint
rev: v2.13.0-beta
hooks:
- id: hadolint-docker
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py312]
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.20.0"
hooks:
- id: django-upgrade
args: [--target-version, "5.1"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.19
hooks:
- id: validate-pyproject
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.0
hooks:
- id: pip-compile
name: pip-compile
args: [pyproject.toml, --no-annotate, --no-header, -o, requirements.txt]
files: pyproject.toml|requirements.txt
- id: pip-compile
name: pip-compile ci
args: [pyproject.toml, --no-annotate, --no-header, --extra, dev, -o, requirements-ci.txt]
files: pyproject.toml|requirements-ci.txt