-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1009 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: master
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: master
hooks:
- id: black
args: [--target-version=py37]
- repo: https://github.com/asottile/reorder_python_imports
rev: master
hooks:
- id: reorder-python-imports
args: [--py37-plus]
- repo: https://github.com/asottile/pyupgrade
rev: master
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.5.9
hooks:
- id: nbqa-black
additional_dependencies: [black==20.8b1]
args: [--nbqa-mutate]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.10.0]
args: [--nbqa-mutate, --py36-plus]
- id: nbqa-isort
additional_dependencies: [isort==5.7.0]
args: [--nbqa-mutate]