-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (63 loc) · 1.81 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: .*\.edf
- id: end-of-file-fixer
exclude: .*\.edf
- id: check-yaml
- id: check-json
- id: check-case-conflict
- id: check-builtin-literals
- id: check-docstring-first
- id: check-merge-conflict
- id: debug-statements
- id: requirements-txt-fixer
- id: detect-private-key
- id: pretty-format-json
args: ["--autofix", "--indent", "4", "--no-sort-keys"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.32.0
hooks:
- id: yamllint
args: ['-d {ignore: deploy/worker/.*yaml}', '-s']
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
hooks:
- id: pyupgrade
args: ["--py3-plus", "--py310-plus"]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-simplify
- flake8-black
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
# .bandit config is not read when used by
# pre-commit (ie with explicit file in input)
# https://github.com/PyCQA/bandit/issues/332
args: ["--skip", "B101"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
types: [python]
args: ["--ignore-missing-imports", "--check-untyped-defs"]
additional_dependencies:
[pydantic, types-pytz, types-requests, types-protobuf]