-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (44 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (44 loc) · 1.29 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
51
#repos:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
hooks:
- id: ruff
args: ["--line-length=120"]
files: "\\.py$"
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1 # Check latest version
hooks:
- id: nbqa-flake8
args: ["--max-line-length=120","--ignore=E402"] #ignore module import not at top of file
files: "\\.ipynb$"
- id: nbqa-black
args: ["--line-length=120"]
files: "\\.ipynb$"
- repo: https://github.com/psf/black
rev: 23.1.0 # Check for the latest version
hooks:
- id: black
args: ["--line-length", "120"]
- repo: https://github.com/srstevenson/nb-clean
rev: 4.0.1
hooks:
- id: nb-clean
args:
- --remove-empty-cells
- --preserve-cell-metadata
- tags
- slideshow
- --
exclude: "^.*/data/.*$"
- repo: https://github.com/tcort/markdown-link-check
rev: v3.13.7
hooks:
- id: markdown-link-check
args: [-q]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
#files: ^.*\.(py|md|ipynb)$
args: ["--ignore-words", ".codespellignore", "--skip=*.bib", "--skip=*.lock","--skip=run_itslive_nbs.py"]