Skip to content

Commit c5f4ead

Browse files
committed
Switch from docformatter to pydocstringformatter
1 parent dd63422 commit c5f4ead

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ci:
1313
- check-manifest
1414
- deptry
1515
- doc8
16-
- docformatter
16+
- pydocstringformatter
1717
- docs
1818
- interrogate
1919
- interrogate-docs
@@ -104,9 +104,9 @@ repos:
104104
additional_dependencies: [uv==0.9.5]
105105
stages: [pre-commit]
106106

107-
- id: docformatter
108-
name: docformatter
109-
entry: uv run --extra=dev -m docformatter --in-place
107+
- id: pydocstringformatter
108+
name: pydocstringformatter
109+
entry: uv run --extra=dev pydocstringformatter
110110
language: python
111111
types_or: [python]
112112
additional_dependencies: [uv==0.9.5]

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ optional-dependencies.dev = [
4242
"deptry==0.24.0",
4343
"doc8==2.0.0",
4444
"doccmd==2026.1.3.2",
45-
"docformatter==1.7.7",
4645
"freezegun==1.5.5",
4746
"furo==2025.12.19",
4847
"interrogate==1.7.0",
4948
"mypy[faster-cache]==1.19.1",
5049
"mypy-strict-kwargs==2026.1.12",
5150
"prek==0.2.27",
51+
"pydocstringformatter==0.7.3",
5252
"pydocstyle==6.3",
5353
"pygments==2.19.2",
5454
"pylint[spelling]==4.0.4",
@@ -274,9 +274,6 @@ spelling-private-dict-file = 'spelling_private_dict.txt'
274274
# --spelling-private-dict-file option instead of raising a message.
275275
spelling-store-unknown-words = 'no'
276276

277-
[tool.docformatter]
278-
make-summary-multi-line = true
279-
280277
[tool.check-manifest]
281278

282279
ignore = [
@@ -346,6 +343,10 @@ enableTypeIgnoreComments = false
346343
reportUnnecessaryTypeIgnoreComment = true
347344
typeCheckingMode = "strict"
348345

346+
[tool.pydocstringformatter]
347+
write = true
348+
split-summary-body = false
349+
349350
[tool.interrogate]
350351
fail-under = 100
351352
omit-covered-files = true

0 commit comments

Comments
 (0)