This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
62 lines (57 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
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
hooks:
- id: isort
- repo: local
hooks:
- id: mypy
name: Run mypy
entry: python -m mypy src/
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/PyCQA/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
[
"darglint==1.5.4",
"flake8-absolute-import==1.0",
"flake8-blind-except==0.1.1",
"flake8-builtins==1.5.3",
"flake8-cognitive-complexity==0.1.0",
"flake8-comprehensions==3.2.3",
"flake8-docstrings==1.5.0",
"flake8-logging-format==0.6.0",
"flake8-mutable==1.2.0",
"flake8-print==3.1.4",
"flake8-printf-formatting==1.1.0",
"flake8-pytest-style==1.2.3",
"flake8-quotes==3.2.0",
"flake8-tuple==0.4.1",
"pep8-naming==0.11.1",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- repo: https://github.com/econchick/interrogate
rev: 1.3.2
hooks:
- id: interrogate
pass_filenames: false