-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.pre-commit-config.yaml
63 lines (58 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
repos:
- repo: https://github.com/python/black
rev: 19.10b0
hooks:
- id: black
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
## ## - repo: https://github.com/asottile/pyupgrade
## ## rev: v2.7.2
## ## hooks:
## ## - id: pyupgrade
## ## args: ["--py38-plus"]
## ## - repo: https://github.com/jumanjihouse/pre-commit-hooks
## ## rev: master # or specific git tag
## ## hooks:
## ## - id: forbid-binary
## ## ## TODO - disable for docs/_build/html
## ## - id: markdownlint # Configure in .mdlrc
## ## # TODO - disable MD012 (consecutive blank lines)
## ## # disable MD013 (line length)
## ## # fix MD031 (fenced code needs blank lines) README.md
## ## - id: shellcheck
## ## - repo: https://github.com/IamTheFij/docker-pre-commit
## ## rev: v2.0.0
## ## hooks:
## ## - id: docker-compose-check
## ## - id: hadolint
## ## # TODO - disable DL3005 (apt upgrade)
## ## # disable DL3008 (unpinned packages)
## ## # disable DL3009 (left apt-get lists around)
- repo: https://github.com/PyCQA/bandit
rev: 1.6.2
hooks:
- id: bandit
args:
- "--skip"
- "B101" # use of assert
- "--baseline"
- ".bandit_baseline.json" # use of md5 for local filename
- "--quiet"
- repo: https://github.com/Yelp/detect-secrets
rev: v0.14.2
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: ".*/tests/.*|docs/_build/html/.buildinfo"