-
Notifications
You must be signed in to change notification settings - Fork 58
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.38 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: mixed-line-ending
- id: no-commit-to-branch
args: [-b, master]
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python # Should be a command that runs python3.6+
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
args:
[
--no-warn-no-return,
--namespace-packages,
--explicit-package-bases,
--ignore-missing-imports,
--follow-imports=silent,
]
additional_dependencies:
- "types-pyyaml"
- "types-requests"
- "types-retry"
- "types-pytz"
- "types-tabulate"
- "types-python-dateutil"
- "types-redis"
- "types-protobuf"
- "types-python-dateutil"
- "types-frozendict"
- "types-typing-extensions"
- "types-urllib3"