-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.61 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: check-toml
- id: trailing-whitespace
- id: check-executables-have-shebangs
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.3
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
name: isort
args: ["--profile", "black"]
- repo: https://github.com/grantjenks/blue
# This is black, but with minor changes (single quotes!)
rev: v0.9.1
hooks:
- id: blue
args: ['--line-length', '88']
- repo: https://github.com/csachs/pyproject-flake8
rev: v0.0.1a5
hooks:
- id: pyproject-flake8
name: flake8
additional_dependencies: [
'flake8-docstrings',
'flake8-rst-docstrings',
'flake8-2020',
'flake8-alfred',
'flake8-broken-line',
'flake8-bugbear',
'flake8-builtins',
'flake8-debugger',
'flake8-noqa',
'flake8-pep3101',
'flake8-pie',
'flake8-pytest',
'flake8-pytest-style',
'flake8-simplify',
'pep8-naming',
]
exclude: docs/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
hooks:
- id: mypy
args: ['--config-file', 'pyproject.toml']
additional_dependencies: [
'types-requests',
'web3',
]
exclude: docs/