mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
[pydocstyle
] Re-implement last-line-after-section
(D413
) (#9654)
## Summary This rule was just incorrect, it didn't match the examples in the docs. (It's a very rarely-used rule since it's not included in any of the conventions.) Closes https://github.com/astral-sh/ruff/issues/9452.
This commit is contained in:
parent
d496c164d3
commit
157d5bacfc
5 changed files with 304 additions and 9 deletions
|
@ -20,6 +20,7 @@ mod tests {
|
|||
|
||||
#[test_case(Rule::BlankLineAfterLastSection, Path::new("sections.py"))]
|
||||
#[test_case(Rule::NoBlankLineAfterSection, Path::new("sections.py"))]
|
||||
#[test_case(Rule::BlankLineAfterLastSection, Path::new("D413.py"))]
|
||||
#[test_case(Rule::BlankLineAfterSummary, Path::new("D.py"))]
|
||||
#[test_case(Rule::NoBlankLineBeforeSection, Path::new("sections.py"))]
|
||||
#[test_case(Rule::CapitalizeSectionName, Path::new("sections.py"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue