We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wasn't sure if this is a bug or not, but I thought I'd report it to see whether this is intended behaviour.
When I have a module written as such:
"""Module-level docstring.""" def func(): pass import time def func2(): pass
After passing through isort, I get:
isort
import time """Module-level docstring.""" def func(): pass def func2(): pass
However, this conflicts with pydocstyle error D100 (Missing docstring in public module.) The behaviour that would not conflict with error D100 is:
pydocstyle
D100
"""Module-level docstring.""" import time def func(): pass def func2(): pass
May I ask, is the behaviour that I reported intended, or should isort be moving modules to the top but below the module-level docstring?
The text was updated successfully, but these errors were encountered:
Hi @ericmjl,
You are correct that this is a bug! It was also mentioned in #1499 and has been fixed in the 5.6.0 release of isort: https://pycqa.github.io/isort/CHANGELOG/#560-october-7-2020
Thanks!
~Timothy
Sorry, something went wrong.
Thank you, @timothycrosley!
No branches or pull requests
I wasn't sure if this is a bug or not, but I thought I'd report it to see whether this is intended behaviour.
When I have a module written as such:
After passing through
isort
, I get:However, this conflicts with
pydocstyle
errorD100
(Missing docstring in public module.) The behaviour that would not conflict with errorD100
is:May I ask, is the behaviour that I reported intended, or should
isort
be moving modules to the top but below the module-level docstring?The text was updated successfully, but these errors were encountered: