-
Notifications
You must be signed in to change notification settings - Fork 499
/
.pre-commit-config.yaml
51 lines (48 loc) · 1.32 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
46
47
48
49
50
51
repos:
# Ruff skada
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
hooks:
- id: ruff
name: ruff lint
args: ["--fix"]
files: ^ot/
- id: ruff
name: ruff lint preview
args: ["--fix", "--preview", "--select=NPY201"]
files: ^ot/
- id: ruff
name: ruff lint doc, tutorials, tests and examples
# D103: missing docstring in public function
# D400: docstring first line must end with period
args: ["--ignore=D103,D400", "--fix"]
files: ^docs/|^examples/^test/
- id: ruff-format
files: ^ot/|^docs/|^examples/|
# Codespell
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli
files: ^ot/|^docs/|^examples/
types_or: [python, bib, rst, inc]
args: [
"--ignore-words",
"ignore-words.txt",
]
# yamllint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
# args: [--strict]
# # rstcheck
# - repo: https://github.com/rstcheck/rstcheck.git
# rev: v6.2.0
# hooks:
# - id: rstcheck
# additional_dependencies:
# - tomli
# files: ^docs/source/.*\.(rst|inc)$