forked from GitGuardian/py-gitguardian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (43 loc) · 1.18 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
default_stages: [commit]
repos:
- repo: https://github.com/ambv/black
rev: 21.9b0
hooks:
- id: black
language_version: python3
exclude: snap_
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-json
- id: check-added-large-files
- id: check-yaml
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.3
hooks:
- id: isort
args: [--settings-path, setup.cfg]
- repo: https://github.com/Woile/commitizen
rev: v2.18.1
hooks:
- id: commitizen
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
stages: [commit-msg]
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
rev: v2.4.1
hooks:
- id: prettier
- repo: https://github.com/gitguardian/gg-shield
rev: v1.8.2
hooks:
- id: ggshield
language_version: python3
stages: [commit]