-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·57 lines (57 loc) · 1.6 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
repos:
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
args: [--line-length=88, --safe]
language_version: python3.7
exclude: >
(?x)^(
punch_version.py|
punch_config.py|
)$
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.20
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: pretty-format-json
- id: requirements-txt-fixer
- id: flake8
additional_dependencies: ["flake8-docstrings==1.3.0",
"flake8-bugbear==19.3.0",
"mccabe==0.6.1",
"flake8-mypy==17.8.0"]
exclude: >
(?x)^(
punch_version.py|
punch_config.py|
)$
args:
- --ignore=F401
- --max-complexity=10
- --max-line-length=88
- repo: local
hooks:
- id: rst
name: rst
entry: rst-lint --encoding utf-8
files: ^(README.rst)$
language: python
additional_dependencies: [pygments,restructuredtext_lint]
language_version: python3.7