-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
93 lines (86 loc) · 2.2 KB
/
.pre-commit-config.yaml
File metadata and controls
93 lines (86 loc) · 2.2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: LICENSES/headers
- id: check-yaml
# !reference is specific to gitlab
# !! prefix is specific to mkdocs
exclude: \.gitlab-ci.yml|mkdocs.yml
- id: check-added-large-files
- id: check-json
- id: pretty-format-json
args: [
--autofix,
--no-sort-keys,
]
exclude: \.ipynb
- id: check-toml
- id: destroyed-symlinks
- id: check-symlinks
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
types_or: [ python, pyi, jupyter ]
args: [ --exit-non-zero-on-fix ]
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.9
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/kynan/nbstripout
rev: 0.9.1
hooks:
- id: nbstripout
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
args: [
--fix,
--disable,
MD024,
]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.6
hooks:
- id: insert-license
name: insert LGPL license
exclude: ^docs
files: \.py$
args:
- --license-filepath
- LICENSES/headers/LGPL-3.0.txt
- id: insert-license
name: insert BSD license
files: ^docs/(examples|tutorials).*\.py$
args:
- --license-filepath
- LICENSES/headers/BSD-0-Clause.txt
- id: insert-license
name: insert CC BY-SA license for rst files
files: \.rst$
args:
- --license-filepath
- LICENSES/headers/CC-BY-SA-4.0.txt
- --comment-style
- ..| |
- id: insert-license
name: insert CC BY-SA license for md files
files: \.md$
args:
- --license-filepath
- LICENSES/headers/CC-BY-SA-4.0.txt
- --comment-style
- <!--||-->