-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
110 lines (110 loc) · 3.12 KB
/
.pre-commit-config.yaml
File metadata and controls
110 lines (110 loc) · 3.12 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v6.0.0"
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: []
- id: debug-statements
- id: end-of-file-fixer
exclude: 'changelog\.d/.*|CHANGLEOG\.md'
- id: mixed-line-ending
- id: name-tests-test
args: ["--pytest-test-first"]
exclude: "tests/custom"
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: 'changelog\.d/.*|CHANGELOG\.md'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
hooks:
- id: ruff-format
stages: [pre-commit]
args: ["--config", "pyproject.toml"]
types_or: [python, jupyter]
- id: ruff-check
stages: [pre-commit]
args: ["--fix", "--config", "pyproject.toml"]
types_or: [python]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ["--skip=*.ipynb"]
additional_dependencies:
- tomli
- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.8.1"
hooks:
- id: prettier
types_or: [javascript, css, json, html]
- repo: local
hooks:
- id: nbclean
name: nbclean
entry: just nbclean
language: system
files: \.(ipynb)$
exclude: ^nbs/
- id: check-cp1252
name: check-cp1252 (Windows install compat)
entry: python scripts/check_cp1252.py
language: system
types: [python]
- repo: local
hooks:
- id: ty
name: ty
entry: uv run --no-sync ty check
language: system
files: \.(py)$
- repo: https://github.com/tombi-toml/tombi-pre-commit
rev: v0.7.14
hooks:
- id: tombi-format
exclude: uv\.lock
- id: tombi-lint
exclude: uv\.lock
- repo: https://github.com/google/yamlfmt
rev: v0.20.0
hooks:
- id: yamlfmt
args: [-conf, ".github/.yamlfmt.yaml"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args: [--strict, "-c=.github/.yamllint.yaml"]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.20.0
hooks:
- id: markdownlint-cli2
name: markdownlint
args: [--config, .github/.markdownlint-cli2.yaml]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
args: [--wrap=120]
exclude: 'docs/nbs/example\.md|docs/api\.md|docs/api/'
additional_dependencies:
- mdformat-gfm
- mdformat-gfm-alerts
- mdformat-tables
- mdformat-frontmatter
- mdformat-footnote
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
args: [--config=pyproject.toml]
pass_filenames: true