pylint does not seem to respect custom isort sections #3817
Labels
Help wanted 🙏
Outside help would be appreciated, good for new contributors
High effort 🏋
Difficult solution or problem to solve
Won't fix/not planned
Steps to reproduce
I have third-parties divided into several sections in isort configuration like this:
And when I run pylint on a module that has
it complains that docutils import should be before that first towncrier import.
It seems like pylint does not understand that there are custom sections and tries to shove everything into third-party.
Side note: does pylint understand
# isort: split
? I guess not.Current behavior
src/sphinxcontrib/towncrier/__init__.py:29:0: C0411: third party import "from docutils import statemachine" should be placed before "from towncrier._settings import load_config_from_file" (wrong-import-order)
Expected behavior
There should be no conflict with isort, hence no error
pylint --version output
The text was updated successfully, but these errors were encountered: