-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.12 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
default_language_version:
node: 22.11.0
python: python3.13
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.1' # keep in sync with pyproject.toml
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pycontribs/mirrors-prettier
rev: v3.3.2
hooks:
- id: prettier
types_or: [css, scss, javascript, ts, tsx, json, yaml]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.20.0
hooks:
- id: eslint
types: [file]
files: \.(js|ts|tsx)$
args: [--report-unused-disable-directives]
additional_dependencies:
- '@wagtail/[email protected]'
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v15.11.0
hooks:
- id: stylelint
files: \.scss$
args: [--report-needless-disables]
additional_dependencies:
- '@wagtail/[email protected]'
- repo: https://github.com/rtts/djhtml
rev: 3.0.7
hooks:
- id: djhtml