-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
65 lines (59 loc) · 1.71 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
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe]
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.6.2
hooks:
- id: pyupgrade
args: [--keep-percent-format, --py3-plus]
- repo: https://github.com/timothycrosley/isort
rev: 5.0.4
hooks:
- id: isort
name: Sort imports
types: [python]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
name: Check python formatting
args: [--line-length=80, --skip-string-normalization, --check, --diff]
language_version: python3.7
stages: [manual]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
name: Format python
args: [--line-length=80, --skip-string-normalization]
language_version: python3.7
- repo: https://github.com/PyCQA/flake8
rev: 3.8.3
hooks:
- id: flake8
name: Check python
additional_dependencies:
- flake8-bugbear==20.1.4
- pep8-naming==0.11.1
- flake8-quotes==3.2.0
- flake8-logging-format==0.6.0
- flake8-comprehensions==3.2.3
- flake8-todo==0.7
- pydocstyle==5.0.2
- flake8-docstrings==1.5.0
- flake8-string-format==0.3.0