Skip to content
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

D413 rule doesn't work correctly #9452

Closed
stinodego opened this issue Jan 10, 2024 · 0 comments · Fixed by #9654
Closed

D413 rule doesn't work correctly #9452

stinodego opened this issue Jan 10, 2024 · 0 comments · Fixed by #9654
Assignees
Labels
bug Something isn't working docstring Related to docstring linting or formatting

Comments

@stinodego
Copy link
Contributor

If I take the code from the example section in the docs:
https://docs.astral.sh/ruff/rules/blank-line-after-last-section/

And run ruff format on it, the blank line after the last section is not added.

My ruff version is 0.1.11 and the config is simply select = ["D413"].

@charliermarsh charliermarsh added bug Something isn't working docstring Related to docstring linting or formatting labels Jan 10, 2024
@charliermarsh charliermarsh self-assigned this Jan 26, 2024
charliermarsh added a commit that referenced this issue Jan 26, 2024
## 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 #9452.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docstring Related to docstring linting or formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants