-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
59 lines (52 loc) · 1.42 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
# NOTE: The versions can be updated by calling
# pre-commit autoupdate
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pycqa/bandit
rev: 1.6.2
hooks:
- id: bandit
args: [--configfile=.bandit.yaml]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-docstrings
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
# NOTE: MonkeyType can automatically annotate
# monkeytype run `which pytest`
# for i in $(monkeytype list-modules); do
# monkeytype apply "$i"
# done
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
exclude: ^docs/conf.py
- repo: https://github.com/prettier/pre-commit
rev: 413fd9da8e03249b74acf8543567e5debbad8bfa
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
# NOTE: pylint must be run on local repo
# https://github.com/pre-commit/pre-commit-hooks/issues/157
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]