-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
51 lines (44 loc) · 1.22 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
default_stages: [commit]
repos:
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: check-merge-conflict
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
args: [--config, ./lambda/setup.cfg]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: [--filter-files, --settings-path, ./lambda/setup.cfg]
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
rev: v2.6.2
hooks:
- id: prettier
- repo: https://github.com/gitguardian/ggshield
rev: v1.15.1
hooks:
- id: ggshield
language_version: python3
stages: [commit]
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.79.1
hooks:
- id: terraform_fmt
- id: terraform_validate