-
Notifications
You must be signed in to change notification settings - Fork 0
Replace docformatter with pydocstringformatter #1518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| """ | ||
| Documentation. | ||
| """ | ||
| """Documentation.""" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,13 +38,13 @@ optional-dependencies.dev = [ | |
| "deptry==0.24.0", | ||
| "doc8==2.0.0", | ||
| "doccmd==2026.1.23.4", | ||
| "docformatter==1.7.7", | ||
| "freezegun==1.5.5", | ||
| "furo==2025.12.19", | ||
| "interrogate==1.7.0", | ||
| "mypy[faster-cache]==1.19.1", | ||
| "mypy-strict-kwargs==2026.1.12", | ||
| "prek==0.3.0", | ||
| "pydocstringformatter==0.7.3", | ||
| "pylint[spelling]==4.0.4", | ||
| "pylint-per-file-ignores==3.2.0", | ||
| "pyproject-fmt==2.11.1", | ||
|
|
@@ -112,8 +112,8 @@ lint.select = [ | |
| lint.ignore = [ | ||
| # Ruff warns that this conflicts with the formatter. | ||
| "COM812", | ||
| # Allow our chosen docstring line-style - no one-line summary. | ||
| "D200", | ||
| # Allow our chosen docstring line-style - pydocstringformatter handles formatting | ||
| # but doesn't enforce D205 (blank line after summary) or D212 (summary on first line). | ||
cursor[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "D205", | ||
| "D212", | ||
| # Ruff warns that this conflicts with the formatter. | ||
|
|
@@ -124,6 +124,9 @@ lint.ignore = [ | |
| ] | ||
|
|
||
| lint.per-file-ignores."doccmd_*.py" = [ | ||
| # Allow our chosen docstring line-style - pydocstringformatter handles | ||
| # formatting but docstrings in docs may not match this style. | ||
| "D200", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. D200 ignore pattern misses docs/source/doccmd filesLow Severity The ruff per-file-ignores pattern |
||
| # Allow asserts in docs. | ||
| "S101", | ||
| ] | ||
|
|
@@ -264,9 +267,6 @@ spelling-private-dict-file = 'spelling_private_dict.txt' | |
| # --spelling-private-dict-file option instead of raising a message. | ||
| spelling-store-unknown-words = 'no' | ||
|
|
||
| [tool.docformatter] | ||
| make-summary-multi-line = true | ||
|
|
||
| [tool.check-manifest] | ||
|
|
||
| ignore = [ | ||
|
|
@@ -331,6 +331,12 @@ enableTypeIgnoreComments = false | |
| reportUnnecessaryTypeIgnoreComment = true | ||
| typeCheckingMode = "strict" | ||
|
|
||
| [tool.pydocstringformatter] | ||
| write = true | ||
| split-summary-body = false | ||
| max-line-length = 75 | ||
| linewrap-full-docstring = true | ||
|
|
||
| [tool.interrogate] | ||
| fail-under = 100 | ||
| omit-covered-files = true | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| """ | ||
| Tests for authorization tools. | ||
| """ | ||
| """Tests for authorization tools.""" |
Uh oh!
There was an error while loading. Please reload this page.