-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.11 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 21.5b2 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.5.0
hooks:
- id: reorder-python-imports
- repo: https://github.com/asottile/pyupgrade
rev: v2.19.1
hooks:
- id: pyupgrade
args: [--py36-plus]
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.11.1
hooks:
- id: nbqa-black
args: [--nbqa-mutate]
- id: nbqa-pyupgrade
args: [--nbqa-mutate, --py36-plus]
- id: nbqa-isort
args: [--nbqa-mutate]
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort