This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
80 lines (71 loc) · 1.67 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
77
78
79
80
default_stages: [commit]
repos:
- repo: https://github.com/psf/black
rev: 21.11b1
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.24.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- #
pycodestyle ==2.8.0
- #
pyflakes ==2.4.0
- #
flake8-bandit ==3.0.0
- #
bandit ==1.7.4
- #
flake8-bugbear ==21.4.3
- #
flake8-comprehensions ==3.7.0
- #
flake8-docstrings ==1.6.0
- #
pydocstyle ==6.1.1
- repo: local
hooks:
- id: mypy
name: mypy
language: python
additional_dependencies:
- #
venv-run ==0.1.0
entry: venv-run mypy
types: [python]
require_serial: true
- id: pylint
name: pylint
language: python
additional_dependencies:
- #
venv-run ==0.1.0
entry: venv-run pylint
types: [python]
require_serial: true
- repo: https://github.com/crate-ci/typos
rev: v1.1.7
hooks:
- id: typos
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.1
hooks:
- id: gitlint
args: [--msg-filename] # no need for --staged
stages: [commit-msg]
- repo: https://github.com/jackdewinter/pymarkdown
rev: 0.9.2
hooks:
- id: pymarkdown
exclude: ^CHANGELOG\.md$