-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
80 lines (73 loc) · 1.92 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
default_stages:
- commit
exclude: node_modules|.git|.tox
fail_fast: true
repos:
- hooks:
- id: detect-secrets
args: [ '--baseline', '.pre-commit/.secrets.baseline' ]
exclude: (config/settings/test.py|/static|.html|local|README.md|.pre-commit/|test_views.py)
repo: https://github.com/Yelp/detect-secrets.git
rev: v1.4.0
- hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
files: \.(json)$
- id: check-toml
files: \.(toml)$
- id: check-yaml
files: \.(yaml)$
- id: fix-encoding-pragma
args: [ --remove ]
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- hooks:
- id: isort
name: isort
language: system
entry: isort --settings-path=.pre-commit
exclude: (/settings/|/migrations/)
require_serial: true
types: [ python ]
repo: local
- hooks:
- exclude: (/settings/)
id: black
args:
- --config=.pre-commit/pyproject.toml
language_version: python3.8
require_serial: true
types:
- python
repo: https://github.com/ambv/black
rev: 24.2.0
- hooks:
- args:
- --config=.pre-commit/setup.cfg
id: flake8
language_version: python3
repo: https://github.com/PyCQA/flake8
rev: 7.0.0
- hooks:
- entry: pylint --rcfile=.pre-commit/.pylintrc
exclude: (/settings/)
files: \.py$
id: system
language: system
name: PyLint
repo: local
- hooks:
- id: commitizen
stages:
- commit-msg
args:
- --config=.pre-commit/pyproject.toml
repo: https://github.com/commitizen-tools/commitizen
rev: v3.18.0
- hooks:
- id: bandit
args: [ --verbose, -ll, . ]
repo: https://github.com/PyCQA/bandit
rev: 1.7.7