Skip to content

Commit ee5594f

Browse files
committed
Remove docs/Makefile and update pre-commit to use sphinx-build directly
1 parent c794efd commit ee5594f

File tree

2 files changed

+9
-26
lines changed

2 files changed

+9
-26
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ repos:
117117

118118
- id: shellcheck-docs
119119
name: shellcheck-docs
120-
entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
120+
entry:
121+
uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
121122
--shell=bash"
122123
language: python
123124
types_or: [markdown, rst]
@@ -134,7 +135,8 @@ repos:
134135

135136
- id: shfmt-docs
136137
name: shfmt-docs
137-
entry: uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
138+
entry:
139+
uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
138140
--no-pad-file --command="shfmt --write --space-redirects --indent=4"
139141
language: python
140142
types_or: [markdown, rst]
@@ -259,7 +261,8 @@ repos:
259261

260262
- id: ruff-format-fix-docs
261263
name: Ruff format docs
262-
entry: uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
264+
entry:
265+
uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
263266
format"
264267
language: python
265268
types_or: [markdown, rst]
@@ -301,7 +304,7 @@ repos:
301304

302305
- id: linkcheck
303306
name: linkcheck
304-
entry: make -C docs/ linkcheck SPHINXOPTS=-W
307+
entry: uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build -W
305308
language: python
306309
types_or: [rst]
307310
stages: [manual]
@@ -310,7 +313,7 @@ repos:
310313

311314
- id: spelling
312315
name: spelling
313-
entry: make -C docs/ spelling SPHINXOPTS=-W
316+
entry: uv run --extra=dev sphinx-build -M spelling docs/source docs/build -W
314317
language: python
315318
types_or: [rst]
316319
stages: [manual]
@@ -319,7 +322,7 @@ repos:
319322

320323
- id: docs
321324
name: Build Documentation
322-
entry: make docs
325+
entry: uv run --extra=dev sphinx-build -M html docs/source docs/build
323326
language: python
324327
stages: [manual]
325328
pass_filenames: false

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)