-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
117 lines (101 loc) · 3.05 KB
/
.pre-commit-config.yaml
File metadata and controls
117 lines (101 loc) · 3.05 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
111
112
113
114
115
116
117
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: check-merge-conflict
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-no-log-warn
- id: python-use-type-annotations
- id: text-unicode-replacement-char
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies: ['mdformat-toc==0.5.0']
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.21.1"
hooks:
- id: pyproject-fmt
args: ["--keep-full-version"]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.8
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.12
hooks:
# Run the linter
- id: ruff-check
args: [--fix, --show-fixes]
# Run the formatter
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: v1.36.4
hooks:
- id: djlint-reformat-jinja
files: src/pyvista_wasm/templates/.*\.html$
args: ["--format-js", "--indent-js", "2"]
- id: djlint-jinja
files: src/pyvista_wasm/templates/.*\.html$
- repo: https://github.com/biomejs/pre-commit
rev: v2.4.14
hooks:
- id: biome-check
additional_dependencies: ["@biomejs/[email protected]"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
- repo: https://github.com/scientific-python/cookie
rev: 2026.04.04
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.20.2
hooks:
- id: mypy
files: ^src/.*\.py$
# SPEC 0: Use minimum supported numpy version
additional_dependencies: [numpy>=2.0]
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies: [black==24.10.0]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
- repo: https://github.com/tkoyama010/standard-readme-pre-commit
rev: 06556851a2b176081b1e9af76392f6326201a7c8
hooks:
- id: standard-readme
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.24.1
hooks:
- id: zizmor
ci:
autofix_commit_msg: |
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
autoupdate_schedule: weekly
submodules: false