-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
32 lines (32 loc) · 936 Bytes
/
.pre-commit-config.yaml
File metadata and controls
32 lines (32 loc) · 936 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
hooks:
- id: flake8
args: [ "--ignore=E203,E501,W504,W503,E731,C901", "--max-complexity=15"]
additional_dependencies: [ flake8-typing-imports==1.16.0 ]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args: [ "--in-place", "--remove-all-unused-imports" ]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [ "--profile", "black" ]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.1
hooks:
- id: pyupgrade
args: [ --py37-plus, --keep-runtime-typing ]