-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
51 lines (46 loc) · 1.28 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
default_language_version:
python: python3
repos:
- repo: local
hooks:
- id: jupyter-nb-clear-output
name: jupyter-nb-clear-output
files: \.ipynb$
stages: [commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
args:
- "--profile=black"
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
args:
- "--py37-plus"
exclude: "^setup.py$"
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.12.0]
args:
# arguments to configure flake8
# making isort line length compatible with black
- "--max-line-length=88"
- "--ignore=E203,E722,E731,W503,E731"
- "--max-complexity=18"