-
Notifications
You must be signed in to change notification settings - Fork 60
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.48 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
default_language_version:
node: 20.15.0
python: python3.12
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
language_version: python3
args: ['--target-version', 'py311']
- repo: https://github.com/pycqa/isort
# isort config is in setup.cfg
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pycqa/flake8
# flake8 config is in setup.cfg
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- flake8-assertive==2.1.0
- flake8-blind-except==0.2.1
- flake8-comprehensions==3.15.0
- 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:
- eslint@8.20.0
- '@wagtail/eslint-config-wagtail@0.4.0'
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.9.1
hooks:
- id: stylelint
files: \.scss$
args: [--report-needless-disables]
additional_dependencies:
- stylelint@14.9.1
- '@wagtail/stylelint-config-wagtail@0.5.0'
- repo: https://github.com/rtts/djhtml
rev: 3.0.7
hooks:
- id: djhtml