-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.72 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
repos:
- repo: 'https://github.com/ambv/black'
rev: 22.3.0
hooks:
- id: black
language_version: python3.9
entry: black src
args:
- '--config=.styleconfigs/pyproject.toml'
- '--skip-string-normalization'
- repo: 'https://github.com/PyCQA/bandit'
rev: 1.7.4
hooks:
- id: bandit
language_version: python3.9
entry: bash -c 'bandit . || true' --
- repo: 'https://gitlab.com/pycqa/flake8'
rev: 4.0.1
hooks:
- id: flake8
args:
- '--config=.styleconfigs/.flake8'
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-ast
- id: check-yaml
- id: debug-statements
- id: check-case-conflict
- id: check-docstring-first
- id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
- id: check-merge-conflict
- id: double-quote-string-fixer
- id: detect-private-key
- id: debug-statements
- repo: 'https://github.com/asottile/setup-cfg-fmt'
rev: v1.20.1
hooks:
- id: setup-cfg-fmt
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v3.8.1
hooks:
- id: reorder-python-imports
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
- repo: 'https://github.com/asottile/pyupgrade'
rev: v2.37.1
hooks:
- id: pyupgrade
args:
- '--py37-plus'
- repo: 'https://github.com/pre-commit/mirrors-autopep8'
rev: v1.6.0
hooks:
- id: autopep8
args:
- '--diff'
- '--recursive'
- '--max-line-length=120'