-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (49 loc) · 1.34 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (49 loc) · 1.34 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
52
53
repos:
- repo: https://github.com/google/pyink
rev: '25.12.0'
hooks:
- id: pyink
types_or: [python, jupyter]
files: '\.(py|ipynb)$'
additional_dependencies:
- "pyink[jupyter]"
- repo: https://github.com/pylint-dev/pylint
rev: v4.0.5
hooks:
- id: pylint
name: pylint
types: [python]
verbose: true
args:
- --rcfile=.pylintrc
# Prevents pylint from failing the pre-commit hook. This is necessary
# because pylint is very strict.
- --exit-zero
exclude: ^tests/
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
- id: nbqa-pylint
stages: [manual]
additional_dependencies: [pylint==3.3.8]
args: [--rcfile=.pylintrc-notebooks, --fail-under=10.0]
files: '\.ipynb$'
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
args: ["--wrap", "80"]
additional_dependencies:
- mdformat-gfm==0.3.5
- "markdown-it-py[linkify]"
# (optional) other plugins:
# - mdformat-frontmatter
# - mdformat-tables
files: '\.md$'
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
name: isort
types: [python]
exclude: ^tests/