Ruff rule links¶
pydocformatter is intended to own comment and docstring formatting, especially in situations where its PCF and PDF rules overlap with Ruff. In practice, configure Ruff to ignore its pydocstyle (D), pydoclint (DOC), and comment/docstring line-formatting rules. In special cases, where fine-grained exceptions to this advice are desired, use the rule tables far below for more details of exact relations between rules.
A canonical paired setup keeps shared formatting settings aligned where both tools rewrite the same syntax, disables the Ruff rules that pydocformatter replaces, and can use a shorter pydocformatter line length for readable prose than Ruff uses for long code lines:
[tool.pydocfmt]
line-length = 120
indent-style = "space"
indent-width = 4
line-ending = "lf"
[tool.ruff]
line-length = 200
indent-width = 4
output-format = "grouped"
[tool.ruff.format]
indent-style = "space"
line-ending = "lf"
quote-style = "double"
[tool.ruff.lint]
ignore = [
"D",
"DOC",
"E261", "E262", "E265", "E266", "E501",
"W505",
]
task-tags = ["TODO", "FIXME", "XXX", "HACK", "BUG", "DEBUG", "NOTE", "OPTIMIZE", "REVIEW"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.pycodestyle]
ignore-overlong-task-comments = true
line-length is intentionally not always shared: many projects use a shorter pydocformatter line length for docstring and comment paragraphs while allowing code lines to use Ruff's wider line length. E501 is included because Ruff's formatter only makes a best-effort attempt to fit its line-length; when formatter-adjacent lint rules or their parent categories are enabled, Ruff's formatter documentation recommends disabling conflicting lint rules through lint.ignore. ignore-overlong-task-comments = true lets Ruff keep task comments from fighting that policy when task comments are intentionally preserved or handled separately. Keep broader Ruff whitespace checks such as W293 enabled if you still want Ruff to check source outside the comment and docstring ranges that pydocformatter owns.
Ruff's W291 reports general trailing whitespace, including the spaces in a Markdown hard break, and can remove comment hard breaks. Disable or scope W291 where pydocformatter owns comment and docstring reflow, or use backslash hard breaks where both tools must coexist. Ruff marks fixes in multiline strings as unsafe; pydocformatter PDF102 instead preserves recognized hard breaks and removes only safely mapped ordinary trailing whitespace. Ruff D406 overlaps with PDF413 for NumPy-style section colons and with PDF102 only for ordinary trailing whitespace that is not a hard break.
The individual pydocformatter rule pages (e.g. PDF001) include Ruff compatibility sections with behavior-level notes. Also ensure to keep Ruff and pydocformatter line endings, indentation style, indentation width, task marker spellings, and any docstring quote policy intentionally aligned so the tools do not rewrite the same source back and forth. output-format = "grouped" keeps Ruff diagnostics visually consistent with pydocformatter's grouped output.
Ruff rules¶
| Code | Name | Message | Fixable | Since | Support by pydocformatter |
|---|---|---|---|---|---|
E261 |
too-few-spaces-before-inline-comment | Insert at least two spaces before an inline comment | Yes | 0.0.269 | Replaced by PCF002 |
E262 |
no-space-after-inline-comment | Inline comment should start with # |
Yes | 0.0.269 | Replaced by PCF002, PCF003 |
E265 |
no-space-after-block-comment | Block comment should start with # |
Yes | 0.0.269 | Replaced by PCF001 |
E266 |
multiple-leading-hashes-for-block-comment | Too many leading # before block comment |
Yes | 0.0.269 | Replaced by PCF001 |
E501 |
line-too-long | Line too long ({width} > {limit}) | No | 0.0.18 | Related to PCF004 |
W291 |
trailing-whitespace | Trailing whitespace | Yes | 0.0.253 | Related to PCF001, PCF002, PDF102 |
W293 |
blank-line-with-whitespace | Blank line contains whitespace | Yes | 0.0.253 | Related to PDF103 |
W505 |
doc-line-too-long | Doc line too long ({width} > {limit}) | No | 0.0.219 | Replaced by PCF001, PDF101 |
D100 |
undocumented-public-module | Missing docstring in public module | No | 0.0.70 | Replaced by PDF602 |
D101 |
undocumented-public-class | Missing docstring in public class | No | 0.0.70 | Replaced by PDF604 |
D102 |
undocumented-public-method | Missing docstring in public method | No | 0.0.70 | Replaced by PDF610 |
D103 |
undocumented-public-function | Missing docstring in public function | No | 0.0.70 | Replaced by PDF608 |
D104 |
undocumented-public-package | Missing docstring in public package | No | 0.0.70 | Replaced by PDF600 |
D105 |
undocumented-magic-method | Missing docstring in magic method | No | 0.0.70 | Replaced by PDF612 |
D106 |
undocumented-public-nested-class | Missing docstring in public nested class | No | 0.0.70 | Replaced by PDF606 |
D107 |
undocumented-public-init | Missing docstring in init | No | 0.0.70 | Replaced by PDF614 |
D200 |
unnecessary-multiline-docstring | One-line docstring should fit on one line | Yes | 0.0.68 | Replaced by PDF110 |
D201 |
blank-line-before-function | No blank lines allowed before function docstring (found {num_lines}) | Yes | 0.0.70 | Replaced by PDF204 |
D202 |
blank-line-after-function | No blank lines allowed after function docstring (found {num_lines}) | Yes | 0.0.70 | Replaced by PDF206 |
D203 |
incorrect-blank-line-before-class | 1 blank line required before class docstring | Yes | 0.0.70 | Replaced by PDF209 |
D204 |
incorrect-blank-line-after-class | 1 blank line required after class docstring | Yes | 0.0.70 | Replaced by PDF211 |
D205 |
missing-blank-line-after-summary | 1 blank line required between summary line and description | Yes | 0.0.68 | Replaced by PDF200, PDF201, PDF203 |
D206 |
docstring-tab-indentation | Docstring should be indented with spaces, not tabs | No | 0.0.75 | Replaced by PDF100 |
D207 |
under-indentation | Docstring is under-indented | Yes | 0.0.75 | Replaced by PDF100 |
D208 |
over-indentation | Docstring is over-indented | Yes | 0.0.75 | Replaced by PDF100 |
D209 |
new-line-after-last-paragraph | Multi-line docstring closing quotes should be on a separate line | Yes | 0.0.68 | Replaced by PDF108, PDF109 |
D210 |
surrounding-whitespace | No whitespaces allowed surrounding docstring text | Yes | 0.0.68 | Replaced by PDF104, PDF105 |
D211 |
blank-line-before-class | No blank lines allowed before class docstring | Yes | 0.0.70 | Replaced by PDF208 |
D212 |
multi-line-summary-first-line | Multi-line docstring summary should start at the first line | Yes | 0.0.69 | Replaced by PDF106, PDF107 |
D213 |
multi-line-summary-second-line | Multi-line docstring summary should start at the second line | Yes | 0.0.69 | Replaced by PDF106, PDF107 |
D214 |
overindented-section | Section is over-indented ("{name}") | Yes | 0.0.73 | Replaced by PDF100 |
D215 |
overindented-section-underline | Section underline is over-indented ("{name}") | Yes | 0.0.73 | Replaced by PDF100 |
D300 |
triple-single-quotes | Use triple double quotes """ | Yes | 0.0.69 | Replaced by PDF001 |
D301 |
escape-sequence-in-docstring | Use r""" if any backslashes in a docstring | Yes | 0.0.172 | Replaced by PDF002 |
D400 |
missing-trailing-period | First line should end with a period | Yes | 0.0.68 | Replaced by PDF300 |
D401 |
non-imperative-mood | First line of docstring should be in imperative mood: "{first_line}" | No | 0.0.228 | Replaced by PDF302 |
D402 |
signature-in-docstring | First line should not be the function's signature | No | 0.0.70 | Replaced by PDF303 |
D403 |
first-word-uncapitalized | First word of the docstring should be capitalized: {} -> {} | Yes | 0.0.69 | Replaced by PDF304 |
D404 |
docstring-starts-with-this | First word of the docstring should not be "This" | No | 0.0.71 | Replaced by PDF305 |
D405 |
non-capitalized-section-name | Section name should be properly capitalized ("{name}") | Yes | 0.0.71 | Replaced by PDF400 |
D406 |
missing-new-line-after-section-name | Section name should end with a newline ("{name}") | Yes | 0.0.71 | Replaced by PDF413, PDF102 |
D407 |
missing-dashed-underline-after-section | Missing dashed underline after section ("{name}") | Yes | 0.0.71 | Replaced by PDF405 |
D408 |
missing-section-underline-after-name | Section underline should be in the line following the section's name ("{name}") | Yes | 0.0.71 | Replaced by PDF405 |
D409 |
mismatched-section-underline-length | Section underline should match the length of its name ("{name}") | Yes | 0.0.71 | Replaced by PDF405 |
D410 |
no-blank-line-after-section | Missing blank line after section ("{name}") | Yes | 0.0.71 | Replaced by PDF201 |
D411 |
no-blank-line-before-section | Missing blank line before section ("{name}") | Yes | 0.0.71 | Replaced by PDF201 |
D412 |
blank-lines-between-header-and-content | No blank lines allowed between a section header and its content ("{name}") | Yes | 0.0.71 | Replaced by PDF200 |
D413 |
missing-blank-line-after-last-section | Missing blank line after last section ("{name}") | Yes | 0.0.71 | Replaced by PDF201 |
D414 |
empty-docstring-section | Section has no content ("{name}") | No | 0.0.71 | Replaced by PDF406 |
D415 |
missing-terminal-punctuation | First line should end with a period, question mark, or exclamation point | Yes | 0.0.69 | Replaced by PDF301 |
D416 |
missing-section-name-colon | Section name should end with a colon ("{name}") | Yes | 0.0.74 | Replaced by PDF404 |
D417 |
undocumented-param | Missing argument description in the docstring for {definition}: {name} | No | 0.0.73 | Replaced by PDF500 |
D418 |
overload-with-docstring | Function decorated with @overload shouldn't contain a docstring | No | 0.0.71 | Replaced by PDF616 |
D419 |
empty-docstring | Docstring is empty | No | 0.0.68 | Replaced by PDF202 |
D420 |
incorrect-section-order | Section "{current}" appears after section "{previous}" but should be before it | No | 0.15.3 | Replaced by PDF407 |
D421 |
property-docstring-starts-with-verb | Property docstring should not start with a verb ("{first_word}") | No | 0.15.18 | Replaced by PDF311 |
DOC102 |
docstring-extraneous-parameter | Documented parameter {id} is not in the function's signature | No | 0.14.1 | Replaced by PDF501 |
DOC201 |
docstring-missing-returns | return is not documented in docstring | No | 0.5.6 | Replaced by PDF502 |
DOC202 |
docstring-extraneous-returns | Docstring should not have a returns section because the function doesn't return anything | No | 0.5.6 | Replaced by PDF503 |
DOC402 |
docstring-missing-yields | yield is not documented in docstring | No | 0.5.7 | Replaced by PDF504 |
DOC403 |
docstring-extraneous-yields | Docstring has a "Yields" section but the function doesn't yield anything | No | 0.5.7 | Replaced by PDF505 |
DOC501 |
docstring-missing-exception | Raised exception {id} missing from docstring | No | 0.5.5 | Replaced by PDF506 |
DOC502 |
docstring-extraneous-exception | Raised exception is not explicitly raised: | No | 0.5.5 | Replaced by PDF507 |
pydocformatter rules¶
PCF: pydocformatter comment formatting¶
| Code | Name | Message | Fixable | Explicit | Since | Ruff rules |
|---|---|---|---|---|---|---|
PCF001 |
standalone-comment-formatting | Standalone comment needs formatting | Usually | - | 1.0.0 | Disable E265, E266, W505; Related to W291 |
PCF002 |
trailing-comment-spacing | Trailing comment spacing should be normalized | Always | - | 1.0.0 | Disable E261, E262; Related to W291 |
PCF003 |
comment-directive-normalization | Directive comment should be normalized | Always | - | 1.0.0 | Disable E262 |
PCF004 |
trailing-comment-extraction | Trailing comment should be extracted | Usually | - | 1.0.0 | Related to E501 |
PCF005 |
comment-ascii-only | Comment contains non-ASCII characters | Never | Opt-in | 1.0.0 | - |
PCF006 |
unused-suppression | Suppression directive is unused | Never | - | 1.0.0 | - |
PDF: pydocformatter docstring formatting¶
| Code | Name | Message | Fixable | Explicit | Convention effects | Since | Conflicts | Ruff rules |
|---|---|---|---|---|---|---|---|---|
PDF000 |
docstring-literal-normalization | Docstring literal should be normalized | Usually | - | - | 1.0.0 | - | - |
PDF001 |
docstring-quote-style | Docstring should use triple double quotes | Sometimes | - | - | 1.0.0 | - | Disable D300 |
PDF002 |
docstring-backslash-raw-prefix | Docstring with backslashes should use a raw string prefix | Sometimes | - | - | 1.0.0 | - | Disable D301 |
PDF003 |
docstring-ascii-only | Docstring source contains non-ASCII characters | Usually | Opt-in | - | 1.0.0 | - | - |
PDF100 |
docstring-indentation | Docstring line is incorrectly indented | Always | - | - | 1.0.0 | - | Disable D206, D207, D208, D214, D215 |
PDF101 |
docstring-reflow | Docstring chunk needs reflow | Usually | - | - | 1.0.0 | - | Disable W505 |
PDF102 |
docstring-trailing-whitespace | Non-empty docstring line has trailing whitespace | Always | - | - | 1.0.0 | - | Disable D406; Related to W291 |
PDF103 |
docstring-blank-line-whitespace | Blank docstring line has whitespace | Always | - | - | 1.0.0 | - | Related to W293 |
PDF104 |
opening-quotes-whitespace | Docstring has extra whitespace after opening quotes | Always | - | - | 1.0.0 | - | Disable D210 |
PDF105 |
closing-quotes-whitespace | Docstring has extra whitespace before closing quotes | Always | - | - | 1.0.0 | - | Disable D210 |
PDF106 |
multiline-opening-quotes-same-line | Multi-line docstring opening quotes should be on the same line as content | Always | - | Ignored: PEP257, NumPy | 1.0.0 | PDF107 | Disable D212, D213 |
PDF107 |
multiline-opening-quotes-separate-line | Multi-line docstring opening quotes should be on a separate line | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF106 | Disable D212, D213 |
PDF108 |
multiline-closing-quotes-same-line | Multi-line docstring closing quotes should be on the same line as content | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF109 | Disable D209 |
PDF109 |
multiline-closing-quotes-separate-line | Multi-line docstring closing quotes should be on a separate line | Always | - | - | 1.0.0 | PDF108 | Disable D209 |
PDF110 |
one-line-docstring | Docstring with one content line should be one line | Always | - | - | 1.0.0 | - | Disable D200 |
PDF200 |
too-many-blank-lines | Docstring has too many blank lines | Always | - | - | 1.0.0 | - | Disable D205, D412 |
PDF201 |
missing-blank-line | Docstring is missing a blank line | Always | - | - | 1.0.0 | - | Disable D205, D410, D411, D413 |
PDF202 |
empty-docstring | Docstring is empty | Never | - | - | 1.0.0 | - | Disable D419 |
PDF203 |
summary-too-long | Docstring summary does not fit on one line | Never | - | - | 1.0.0 | - | Disable D205 |
PDF204 |
no-blank-line-before-function-docstring | No blank lines allowed before function docstring | Always | - | - | 1.0.0 | PDF205 | Disable D201 |
PDF205 |
blank-line-before-function-docstring | One blank line required before function docstring | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF204 | - |
PDF206 |
no-blank-line-after-function-docstring | No blank lines allowed after function docstring | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF207 | Disable D202 |
PDF207 |
blank-line-after-function-docstring | One blank line required after function docstring | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF206 | - |
PDF208 |
no-blank-line-before-class-docstring | No blank lines allowed before class docstring | Always | - | - | 1.0.0 | PDF209 | Disable D211 |
PDF209 |
blank-line-before-class-docstring | One blank line required before class docstring | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF208 | Disable D203 |
PDF210 |
no-blank-line-after-class-docstring | No blank lines allowed after class docstring | Always | - | Ignored: None, PEP257, Google, NumPy, reST | 1.0.0 | PDF211 | - |
PDF211 |
blank-line-after-class-docstring | One blank line required after class docstring | Always | - | - | 1.0.0 | PDF210 | Disable D204 |
PDF212 |
missing-summary | Docstring is missing a summary | Never | - | - | 1.1.0 | - | - |
PDF300 |
summary-trailing-period | Docstring summary should end with a period | Sometimes | - | Ignored: Google | 1.0.0 | - | Disable D400 |
PDF301 |
summary-terminal-punctuation | Docstring summary should end with terminal punctuation | Sometimes | - | Ignored: PEP257, NumPy | 1.0.0 | - | Disable D415 |
PDF302 |
non-imperative-summary | Docstring summary should be in imperative mood | Never | - | Ignored: Google | 1.0.0 | - | Disable D401 |
PDF303 |
signature-like-summary | Docstring summary should not be a signature | Never | - | Ignored: NumPy | 1.0.0 | - | Disable D402 |
PDF304 |
summary-first-word-capitalization | Docstring summary first word should be capitalized | Sometimes | - | - | 1.0.0 | - | Disable D403 |
PDF305 |
summary-starts-with-this | Docstring summary should not start with "This" | Never | - | Ignored: PEP257, Google | 1.0.0 | - | Disable D404 |
PDF306 |
parameter-documentation-too-generic | Parameter documentation is too generic | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF307 |
attribute-documentation-too-generic | Attribute documentation is too generic | Never | - | Ignored: None, PEP257 | 1.0.0 | - | - |
PDF308 |
entry-description-trailing-period | Docstring entry description should end with a period | Sometimes | - | Disabled: None, PEP257; Ignored: Google | 1.0.0 | - | - |
PDF309 |
entry-description-terminal-punctuation | Docstring entry description should end with terminal punctuation | Sometimes | - | Disabled: None, PEP257; Ignored: NumPy | 1.0.0 | - | - |
PDF310 |
entry-description-first-word-capitalization | Docstring entry description first word should be capitalized | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF311 |
property-docstring-starts-with-verb | Property docstring should not start with a verb | Never | - | - | 1.0.0 | - | Disable D421 |
PDF400 |
section-name-capitalization | Docstring section name should be properly capitalized | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | Disable D405 |
PDF401 |
section-name-pluralization | Docstring section name should use the preferred plural or canonical form | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF402 |
section-name-term-normalization | Docstring section name should use the preferred equivalent term | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF403 |
section-name-trailing-content | Docstring section name should be followed by a line break | Sometimes | - | Disabled: None, PEP257, NumPy, reST | 1.0.0 | - | - |
PDF404 |
section-name-trailing-colon | Docstring section name should end with a colon | Sometimes | - | Disabled: None, PEP257, NumPy, reST | 1.0.0 | - | Disable D416 |
PDF405 |
section-underline-format | Docstring section underline should be normalized | Sometimes | - | Disabled: None, PEP257, Google, reST | 1.0.0 | - | Disable D407, D408, D409 |
PDF406 |
empty-section | Docstring section should not be empty | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable D414 |
PDF407 |
section-order | Docstring sections should be in the configured order | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable D420 |
PDF408 |
repeated-section | Docstring section should not be repeated | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF409 |
docstring-entry-spacing | Docstring convention entry spacing should be normalized | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF410 |
exception-entry-normalization | Docstring exception entry should use canonical spelling | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF411 |
type-like-token-spacing-normalization | Docstring type-like token spacing should be normalized | Sometimes | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF412 |
repeated-docstring-entry | Docstring entry should not be repeated | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF413 |
section-name-superfluous-colon | Docstring section name should not end with a colon | Sometimes | - | Disabled: None, PEP257, Google, reST | 1.0.0 | - | Disable D406 |
PDF414 |
malformed-convention-entry | Docstring convention entry should use valid syntax | Never | - | Disabled: None, PEP257 | 1.1.0 | - | - |
PDF415 |
convention-entry-indentation | Docstring convention entry should use valid indentation | Never | - | Disabled: None, PEP257, reST | 1.1.0 | - | - |
PDF500 |
missing-parameter-documentation | Function parameter is missing docstring documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable D417 |
PDF501 |
extraneous-parameter-documentation | Docstring documents a parameter that is not in the function signature | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC102 |
PDF502 |
missing-return-documentation | Function return value is missing docstring documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC201 |
PDF503 |
extraneous-return-documentation | Docstring has return documentation for a function that does not return | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC202 |
PDF504 |
missing-yield-documentation | Function yield value is missing docstring documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC402 |
PDF505 |
extraneous-yield-documentation | Docstring has yield documentation for a function that does not yield a meaningful value | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC403 |
PDF506 |
missing-exception-documentation | Raised exception is missing docstring documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | Disable DOC501 |
PDF507 |
extraneous-exception-documentation | Docstring documents an exception that is not explicitly raised | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | - | Disable DOC502 |
PDF508 |
missing-public-class-attribute-documentation | Public class attribute is missing docstring documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF509 |
extraneous-class-attribute-documentation | Class docstring documents an attribute that is not present | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF510 |
missing-public-module-attribute-documentation | Public module attribute is missing docstring documentation | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | - | - |
PDF511 |
extraneous-module-attribute-documentation | Module docstring documents an attribute that is not present | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF512 |
duplicate-class-attribute-documentation | Attached attribute docstring duplicates class docstring attribute documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF513 |
duplicate-module-attribute-documentation | Attached attribute docstring duplicates module docstring attribute documentation | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF514 |
private-class-attribute-owner-docstring-forbidden | Class docstring documents a private attribute | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF522 | - |
PDF515 |
private-module-attribute-owner-docstring-forbidden | Module docstring documents a private attribute | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF524 | - |
PDF516 |
private-class-attribute-attached-docstring-forbidden | Private class attribute should not have an attached docstring | Never | Opt-in | - | 1.0.0 | PDF523 | - |
PDF517 |
private-module-attribute-attached-docstring-forbidden | Private module attribute should not have an attached docstring | Never | Opt-in | - | 1.0.0 | PDF525 | - |
PDF518 |
public-class-attribute-docstring-must-be-owner | Public class attribute must use class docstring documentation, not attached docstring | Never | Opt-in | - | 1.0.0 | PDF519 | - |
PDF519 |
public-class-attribute-docstring-must-be-attached | Public class attribute must use attached docstring, not class docstring documentation | Never | Opt-in | Disabled: None, PEP257 | 1.0.0 | PDF518 | - |
PDF520 |
public-module-attribute-docstring-must-be-owner | Public module attribute must use module docstring documentation, not attached docstring | Never | Opt-in | - | 1.0.0 | PDF521 | - |
PDF521 |
public-module-attribute-docstring-must-be-attached | Public module attribute must use attached docstring, not module docstring documentation | Never | Opt-in | Disabled: None, PEP257 | 1.0.0 | PDF520 | - |
PDF522 |
private-class-attribute-docstring-must-be-owner | Private class attribute must use class docstring documentation, not attached docstring | Never | Opt-in | - | 1.0.0 | PDF514, PDF523 | - |
PDF523 |
private-class-attribute-docstring-must-be-attached | Private class attribute must use attached docstring, not class docstring documentation | Never | Opt-in | Disabled: None, PEP257 | 1.0.0 | PDF516, PDF522 | - |
PDF524 |
private-module-attribute-docstring-must-be-owner | Private module attribute must use module docstring documentation, not attached docstring | Never | Opt-in | - | 1.0.0 | PDF515, PDF525 | - |
PDF525 |
private-module-attribute-docstring-must-be-attached | Private module attribute must use attached docstring, not module docstring documentation | Never | Opt-in | Disabled: None, PEP257 | 1.0.0 | PDF517, PDF524 | - |
PDF526 |
parameter-documentation-order | Docstring parameters are not in function signature order | Never | - | Disabled: None, PEP257 | 1.1.0 | - | - |
PDF600 |
missing-public-package-documentation | Public package is missing docstring | Never | - | - | 1.0.0 | - | Disable D104 |
PDF601 |
missing-private-package-documentation | Private package is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF602 |
missing-public-module-documentation | Public module is missing docstring | Never | - | - | 1.0.0 | - | Disable D100 |
PDF603 |
missing-private-module-documentation | Private module is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF604 |
missing-public-class-documentation | Public class is missing docstring | Never | - | - | 1.0.0 | - | Disable D101 |
PDF605 |
missing-private-class-documentation | Private class is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF606 |
missing-public-nested-class-documentation | Public nested class is missing docstring | Never | - | - | 1.0.0 | - | Disable D106 |
PDF607 |
missing-private-nested-class-documentation | Private nested class is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF608 |
missing-public-function-documentation | Public function is missing docstring | Never | - | - | 1.0.0 | - | Disable D103 |
PDF609 |
missing-private-function-documentation | Private function is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF610 |
missing-public-method-documentation | Public method is missing docstring | Never | - | - | 1.0.0 | - | Disable D102 |
PDF611 |
missing-private-method-documentation | Private method is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF612 |
missing-public-dunder-method-documentation | Public dunder method is missing docstring | Never | Opt-in | - | 1.0.0 | - | Disable D105 |
PDF613 |
missing-private-dunder-method-documentation | Private dunder method is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF614 |
missing-public-init-documentation | Public init method is missing docstring | Never | - | - | 1.0.0 | - | Disable D107 |
PDF615 |
missing-private-init-documentation | Private init method is missing docstring | Never | Opt-in | - | 1.0.0 | - | - |
PDF616 |
forbidden-function-docstring | Function decorated with forbidden decorator should not have a docstring | Never | - | - | 1.0.0 | - | Disable D418 |
PDF700 |
parameter-missing-description | Function parameter docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF701 |
parameter-type-required | Function parameter docstring entry is missing a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF702 | - |
PDF702 |
parameter-type-forbidden | Function parameter docstring entry should not include a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF701, PDF703 | - |
PDF703 |
parameter-type-mismatch | Function parameter docstring type does not match the annotation | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF702 | - |
PDF704 |
return-missing-description | Function return docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF705 |
return-type-required | Function return docstring entry is missing a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF706 | - |
PDF706 |
return-type-forbidden | Function return docstring entry should not include a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF705, PDF707 | - |
PDF707 |
return-type-mismatch | Function return docstring type does not match the annotation | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF706 | - |
PDF708 |
yield-missing-description | Function yield docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF709 |
yield-type-required | Function yield docstring entry is missing a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF710 | - |
PDF710 |
yield-type-forbidden | Function yield docstring entry should not include a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF709, PDF711 | - |
PDF711 |
yield-type-mismatch | Function yield docstring type does not match the annotation | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF710 | - |
PDF712 |
class-attribute-missing-description | Class attribute docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF713 |
class-attribute-type-required | Class attribute docstring entry is missing a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF714 | - |
PDF714 |
class-attribute-type-forbidden | Class attribute docstring entry should not include a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF713, PDF715 | - |
PDF715 |
class-attribute-type-mismatch | Class attribute docstring type does not match the annotation | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF714 | - |
PDF716 |
module-attribute-missing-description | Module attribute docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.0.0 | - | - |
PDF717 |
module-attribute-type-required | Module attribute docstring entry is missing a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF718 | - |
PDF718 |
module-attribute-type-forbidden | Module attribute docstring entry should not include a type | Never | - | Disabled: None, PEP257; Ignored: Google, NumPy, reST | 1.0.0 | PDF717, PDF719 | - |
PDF719 |
module-attribute-type-mismatch | Module attribute docstring type does not match the annotation | Never | - | Disabled: None, PEP257 | 1.0.0 | PDF718 | - |
PDF720 |
exception-missing-description | Exception docstring entry is missing a description | Never | - | Disabled: None, PEP257 | 1.1.0 | - | - |
PDF721 |
warning-missing-description | Warning docstring entry is missing a description | Never | - | Disabled: None, PEP257, reST | 1.1.0 | - | - |