-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
80 lines (71 loc) · 1.93 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', '.secrets.baseline' ]
exclude: (config/settings/test.py|/static|.html|local|README.md|poetry.lock|infra/environments/.*_cf_parameters.json*)
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: debug-statements
- id: check-added-large-files
args: ['--maxkb=600']
- id: check-docstring-first
- id: check-case-conflict
- id: check-builtin-literals
- id: mixed-line-ending
- id: check-json
files: \.(json)$
- id: check-toml
files: \.(toml)$
- id: fix-encoding-pragma
args: [ --remove ]
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- hooks:
- id: isort
entry: isort
additional_dependencies: [ "toml" ]
repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- hooks:
- exclude: (/settings/)
id: black
require_serial: true
types:
- python
repo: https://github.com/ambv/black
rev: 23.1.0
- hooks:
- id: flakeheaven
repo: https://github.com/flakeheaven/flakeheaven
rev: 3.2.1
- hooks:
- entry: pylint --jobs=0
exclude: (/settings/)
files: \.py$
id: PyLint
language: system
name: PyLint
repo: local
- hooks:
- id: commitizen
stages:
- commit-msg
repo: https://github.com/commitizen-tools/commitizen
rev: v2.42.0
- hooks:
- id: bandit
args: [ --verbose, -ll, --recursive, --exclude, "./venv", . ]
repo: https://github.com/PyCQA/bandit
rev: 1.7.4
- repo: https://github.com/Trim21/poetry-check-lock.git
rev: v0.0.5
hooks:
- id: poetry-check-lock