-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
85 lines (84 loc) · 2.14 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
81
82
83
84
85
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
exclude: .vscode
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
# See: https://github.com/c4urself/bump2version/issues/58
exclude: setup.cfg
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
hooks:
- id: pyupgrade
args: [--py38-plus]
# files: ^src\/.*
- repo: https://github.com/myint/autoflake
rev: v2.1.1
hooks:
- id: autoflake
args:
[
--in-place,
--ignore-init-module-imports,
--remove-unused-variables,
--remove-all-unused-imports,
]
# files: ^src\/.*
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
# files: ^src\/.*
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
# files: ^src\/.*
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
# files: ^src\/.*
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
args: [--install-types, --non-interactive]
# files: ^src\/.*
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-pyupgrade
args: [--py38-plus]
- id: nbqa-isort
- id: nbqa-black
- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
hooks:
- id: doc8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [--recursive, --exclude, "test/*"]
# run `export GOPROXY=direct` prior to `pre-commit install`
- repo: https://github.com/zricethezav/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
args: [detect, --verbose, --source, .]
exclude: >
(?x)^(
.tox|
.venv
)