-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
45 lines (39 loc) · 1.13 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,markdown']
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/zmoon/findent-pre-commit
rev: "65627b82c4103aa12dd0fb6b3267bfb1abd858c7"
hooks:
# NOTE: doesn't work on Windows currently
- id: wfindent-pypi
args: ['-i4']
additional_dependencies: ['findent<4.2.6']
- repo: https://github.com/asottile/pyupgrade
rev: "v3.3.1"
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/PyCQA/isort
rev: "5.12.0"
hooks:
- id: isort
args: [--line-length=90, --profile=black]
- repo: https://github.com/psf/black
rev: "23.3.0"
hooks:
- id: black-jupyter
args: [--line-length=90]
- repo: https://github.com/PyCQA/flake8
rev: "6.0.0"
hooks:
- id: flake8
args: [--max-line-length=90, "--ignore=E203,E402,E501,W503,E226"]
- repo: https://github.com/kynan/nbstripout
rev: "0.6.1"
hooks:
- id: nbstripout