-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
executable file
·50 lines (45 loc) · 1.33 KB
/
.pre-commit-config.yaml
File metadata and controls
executable file
·50 lines (45 loc) · 1.33 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [commit, merge-commit, push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
stages: [commit, merge-commit]
- id: end-of-file-fixer
stages: [commit, merge-commit]
- id: fix-encoding-pragma
stages: [commit, merge-commit]
- id: mixed-line-ending
stages: [commit, merge-commit]
args: ['--fix=lf']
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
stages: [commit, merge-commit]
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black-jupyter
stages: [commit, merge-commit]
args: ["-l", "100"]
# - repo: https://github.com/charliermarsh/ruff-pre-commit
# rev: 'v0.0.272'
# hooks:
# - id: ruff
# stages: [commit, merge-commit]
# args: ["--fix", "--exit-zero"]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.2
hooks:
- id: docformatter
stages: [commit, merge-commit]
args: ["-r", "-i", "--wrap-summaries", "100", "--wrap-descriptions", "90"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
stages: [commit, merge-commit]
args: ["--profile", "black", "-l", "100"]