Skip to content

Commit 842a827

Browse files
Add --no-write-to-file flag for read-only doccmd commands (#2746)
1 parent 809a172 commit 842a827

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +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
137-
--shell=bash --exclude=SC2215"
136+
entry: uv run --extra=dev doccmd --no-write-to-file --language=shell --language=console
137+
--command="shellcheck --shell=bash --exclude=SC2215"
138138
language: python
139139
types_or: [markdown, rst]
140140
additional_dependencies: [uv==0.9.5]
@@ -169,7 +169,7 @@ repos:
169169
- id: mypy-docs
170170
name: mypy-docs
171171
stages: [pre-push]
172-
entry: uv run --extra=dev doccmd --language=python --command="mypy"
172+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="mypy"
173173
language: python
174174
types_or: [markdown, rst]
175175

@@ -193,7 +193,7 @@ repos:
193193
- id: pyright-docs
194194
name: pyright-docs
195195
stages: [pre-push]
196-
entry: uv run --extra=dev doccmd --language=python --command="pyright"
196+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pyright"
197197
language: python
198198
types_or: [markdown, rst]
199199

@@ -217,7 +217,7 @@ repos:
217217

218218
- id: vulture-docs
219219
name: vulture docs
220-
entry: uv run --extra=dev doccmd --language=python --command="vulture"
220+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="vulture"
221221
language: python
222222
types_or: [python]
223223
pass_filenames: false
@@ -251,7 +251,7 @@ repos:
251251

252252
- id: pylint-docs
253253
name: pylint-docs
254-
entry: uv run --extra=dev doccmd --language=python --command="pylint"
254+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="pylint"
255255
language: python
256256
stages: [manual]
257257
types_or: [markdown, rst]
@@ -307,7 +307,7 @@ repos:
307307

308308
- id: interrogate-docs
309309
name: interrogate docs
310-
entry: uv run --extra=dev doccmd --language=python --command="interrogate"
310+
entry: uv run --extra=dev doccmd --no-write-to-file --language=python --command="interrogate"
311311
language: python
312312
types_or: [markdown, rst]
313313
additional_dependencies: [uv==0.9.5]

0 commit comments

Comments
 (0)