forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (55 loc) · 1.64 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
default_language_version:
node: system
python: python3
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.5'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [css, scss, javascript, ts, tsx, json, yaml]
additional_dependencies:
# Keep in sync with package.json
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.56.0
hooks:
- id: eslint
types: [file]
files: \.(js|ts|tsx)$
args: [--report-unused-disable-directives]
additional_dependencies:
# Keep in sync with package.json
- '@typescript-eslint/[email protected]'
- '@typescript-eslint/[email protected]'
- '@wagtail/[email protected]'
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v15.11.0
hooks:
- id: stylelint
files: \.scss$
additional_dependencies:
# Keep in sync with package.json
- '@wagtail/[email protected]'
- repo: https://github.com/thibaudcolas/curlylint
rev: v0.13.1
hooks:
- id: curlylint
args: ['--parse-only']
- repo: https://github.com/rtts/djhtml
rev: 3.0.6
hooks:
- id: djhtml
- repo: https://github.com/returntocorp/semgrep
rev: v1.40.0
hooks:
- id: semgrep
files: \.py$
args: ['--config', '.semgrep.yml', '--disable-version-check', '--error']