You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Black 23.1.0 introduces a new formatting change that requires an empty line before functions: psf/black#3302. In some rare cases, this seems to counteract pydocstyle requirements.
foo.py:5 in public function `foo`:
D202: No blank lines allowed after function docstring (found 1)
It's unclear to me whether black or pydocstyle is in the wrong here. Since black is a bigger project, I thought I'd start here and see whether pydocstyle should conform to this new standard set by black or whether this is a bug I should report to black.
The text was updated successfully, but these errors were encountered:
Note that the issue disappears if the comment is removed. Black still reformats the function, but pydocstyle is okay with it with or without the newline. This leads me to believe this is a problem with pydocstyle.
Black 23.1.0 introduces a new formatting change that requires an empty line before functions: psf/black#3302. In some rare cases, this seems to counteract pydocstyle requirements.
Steps to reproduce
It's unclear to me whether black or pydocstyle is in the wrong here. Since black is a bigger project, I thought I'd start here and see whether pydocstyle should conform to this new standard set by black or whether this is a bug I should report to black.
The text was updated successfully, but these errors were encountered: