forked from cclauss/Ten-lines-or-less
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.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
repos:
- repo: https://github.com/python/black
rev: stable
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: master
hooks:
- id: codespell
args:
- --quiet-level=2
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
args:
- --ignore=E401,W503
- --max-complexity=10
- --max-line-length=88
# E401 multiple imports on one line -- Sometimes key to 10 lines or less
# W503 line break before binary operator
#- repo: https://github.com/timothycrosley/isort
# rev: 4.3.21-2
# hooks:
# - id: isort
# args:
# - --recursive
- repo: https://github.com/pre-commit/mirrors-mypy
rev: master
hooks:
- id: mypy
# By default, mypy will run with mypy --ignore-missing-imports,
# pre-commit runs mypy from an isolated virtualenv so it won't
# have access to those. To change the arguments, override the
# args as follows:
# args: [--no-strict-optional, --ignore-missing-imports]
#- repo: https://github.com/pytest-dev/pytest
# rev: 5.3.4
# hooks:
# - id: pytest