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
82 lines (73 loc) · 1.79 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
81
82
default_stages: [commit]
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.2
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- #
pycodestyle ==2.9.1
- #
pyflakes ==2.5.0
- #
flake8-bandit ==4.1.1
- #
bandit ==1.7.4
- #
flake8-bugbear ==22.9.23
- #
flake8-comprehensions ==3.10.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.2
entry: venv-run mypy
types: [python]
require_serial: true
- id: pylint
name: pylint
language: python
additional_dependencies:
- #
venv-run ==0.1.2
entry: venv-run pylint
types: [python]
require_serial: true
- repo: https://github.com/crate-ci/typos
rev: v1.12.7
hooks:
- id: typos
# TODO: to .typos.toml, https://github.com/crate-ci/typos/issues/347
exclude: ^tests/cassettes/
- repo: https://github.com/jorisroovers/gitlint
rev: v0.17.0
hooks:
- id: gitlint
args: [--msg-filename] # no need for --staged
stages: [commit-msg]
- repo: https://github.com/jackdewinter/pymarkdown
rev: v0.9.8
hooks:
- id: pymarkdown
exclude: ^CHANGELOG\.md$