-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
76 lines (70 loc) · 2.18 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
minimum_pre_commit_version: "1.17.0"
repos:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: "v1.23.0"
hooks:
- id: "commitizen"
language_version: "python3.8"
stages: ["commit-msg"]
- repo: "https://github.com/psf/black"
rev: "19.10b0"
hooks:
- id: "black"
name: "Format code (black)"
language_version: "python3.8"
exclude: ^docs/.*$
- repo: "https://github.com/asottile/blacken-docs"
rev: "v1.7.0"
hooks:
- id: "blacken-docs"
name: "Format docs (blacken-docs)"
language_version: "python3.8"
args: ["-l", "64"]
additional_dependencies:
- "black==19.10b0"
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v3.1.0"
hooks:
- id: "end-of-file-fixer"
- id: "trailing-whitespace"
- id: "check-json"
- id: "check-toml"
- id: "check-yaml"
- repo: "https://gitlab.com/PyCQA/flake8"
rev: "3.8.3"
hooks:
- id: "flake8"
name: "Lint code (flake8)"
language_version: "python3.8"
additional_dependencies: &flake8_additional_dependencies
- "flake8==3.8.3"
- "flake8-broken-line==0.2.1"
- "flake8-bugbear==20.1.4"
- "flake8-builtins==1.5.3"
- "flake8-comprehensions==3.2.3"
- "flake8-eradicate==0.4.0"
- "flake8-import-order==0.18.1"
- "flake8-mutable==1.2.0"
- "flake8-pie==0.5.0"
- "flake8-quotes==3.2.0"
- "flake8-string-format==0.3.0"
- "flake8-tidy-imports==4.1.0"
- "flake8-variables-names==0.0.3"
- "pep8-naming==0.11.1"
exclude: ^docs/.*$
- repo: "https://github.com/asottile/yesqa"
rev: "v1.2.1"
hooks:
- id: yesqa
name: "Lint code (yesqa)"
language_version: "python3.8"
additional_dependencies: *flake8_additional_dependencies
exclude: ^docs/.*$
- repo: "https://github.com/pre-commit/mirrors-mypy"
rev: "v0.782"
hooks:
- id: "mypy"
name: "Lint code (mypy)"
language_version: "python3.8"
args: ["--python-executable=.venv/bin/python3"]
exclude: ^docs/.*$