Skip to content

Commit cff7028

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

File tree

2 files changed

+9
-25
lines changed

2 files changed

+9
-25
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ repos:
133133
- id: shellcheck-docs
134134
name: shellcheck-docs
135135
# We exclude SC2215 as it is a false positive for an unknown reason on Windows.
136-
entry: uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
136+
entry:
137+
uv run --extra=dev doccmd --language=shell --language=console --command="shellcheck
137138
--shell=bash --exclude=SC2215"
138139
language: python
139140
types_or: [markdown, rst]
@@ -150,7 +151,8 @@ repos:
150151

151152
- id: shfmt-docs
152153
name: shfmt-docs
153-
entry: uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
154+
entry:
155+
uv run --extra=dev doccmd --language=shell --language=console --skip-marker=shfmt
154156
--no-pad-file --command="shfmt --write --space-redirects --indent=4"
155157
language: python
156158
types_or: [markdown, rst]
@@ -282,7 +284,8 @@ repos:
282284

283285
- id: ruff-format-fix-docs
284286
name: Ruff format docs
285-
entry: uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
287+
entry:
288+
uv run --extra=dev doccmd --language=python --no-pad-file --command="ruff
286289
format"
287290
language: python
288291
types_or: [markdown, rst]
@@ -323,7 +326,7 @@ repos:
323326
stages: [pre-commit]
324327
- id: linkcheck
325328
name: linkcheck
326-
entry: make -C docs/ linkcheck SPHINXOPTS=-W
329+
entry: uv run --extra=dev sphinx-build -M linkcheck docs/source docs/build -W
327330
language: python
328331
types_or: [rst]
329332
stages: [manual]
@@ -332,7 +335,7 @@ repos:
332335

333336
- id: spelling
334337
name: spelling
335-
entry: make -C docs/ spelling SPHINXOPTS=-W
338+
entry: uv run --extra=dev sphinx-build -M spelling docs/source docs/build -W
336339
language: python
337340
types_or: [rst]
338341
stages: [manual]
@@ -341,7 +344,7 @@ repos:
341344

342345
- id: docs
343346
name: Build Documentation
344-
entry: make docs
347+
entry: uv run --extra=dev sphinx-build -M html docs/source docs/build
345348
language: python
346349
stages: [manual]
347350
pass_filenames: false

docs/Makefile

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

0 commit comments

Comments
 (0)