-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
86 lines (83 loc) · 2.44 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
fail_fast: true
default_language_version:
python: python3
exclude: ^.*\b(migrations)\b.*$
default_stages: [commit, manual]
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: (BF) black
files: ^backend/benefit
- id: black
name: (KS) black
files: ^backend/kesaseteli
- id: black
name: (TET) black
files: ^backend/tet
- id: black
name: (Shared) black
files: ^backend/shared
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: (BF) isort
args: [--settings-file, backend/benefit/setup.cfg]
files: ^backend/benefit
- id: isort
name: (KS) isort
args: [--settings-file, backend/kesaseteli/setup.cfg]
files: ^backend/kesaseteli
- id: isort
name: (TET) isort
args: [--settings-file, backend/tet/setup.cfg]
files: ^backend/tet
- id: isort
name: (Shared) isort
args: [--settings-file, backend/shared/setup.cfg]
files: ^backend/shared
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: (BF) flake8
additional_dependencies: [flake8-isort, flake8-black]
exclude: migrations|snapshots
files: ^backend/benefit
args: [--config, backend/benefit/setup.cfg]
- id: flake8
name: (KS) flake8
additional_dependencies: [flake8-isort, flake8-black]
exclude: migrations|snapshots
files: ^backend/kesaseteli
args: [--config, backend/kesaseteli/setup.cfg]
- id: flake8
name: (TET) flake8
additional_dependencies: [flake8-isort, flake8-black]
exclude: migrations|snapshots
files: ^backend/tet
args: [--config, backend/tet/setup.cfg]
- id: flake8
name: (Shared) flake8
additional_dependencies: [flake8-isort, flake8-black]
exclude: migrations|snapshots
files: ^backend/shared
args: [--config, backend/shared/setup.cfg]
- repo: local
hooks:
- id: lint-staged
name: (Frontend) Run lint-staged with lerna
entry: "./.husky/pre-commit"
language: system
types: [file]
require_serial: true
- repo: local
hooks:
- id: commit-msg
name: Validate commit message (conventional commits)
entry: "./.husky/commit-msg"
language: system
stages:
- commit-msg