My project is noticing a strange behavior with isort and we're wondering if it's intentional design.
Right now, we are configured so that this is a valid import:
from very_long_import_name_close_to_limit import (
a,
b,
c,
)
However, we want to add # noqa to the imports so that flake8 doesn't mark them as unused (for project-specific reasons, we want them to be directly importable from this file). However, doing so results in the following isort fix:
-from very_long_import_name_close_to_limit import (
- a, # noqa
- b, # noqa
- c, # noqa
-)
+from very_long_import_name_close_to_limit import a # noqa
+from very_long_import_name_close_to_limit import b # noqa
+from very_long_import_name_close_to_limit import c # noqa
Is this intentional behavior? If so, why?
My project is noticing a strange behavior with
isortand we're wondering if it's intentional design.Right now, we are configured so that this is a valid import:
However, we want to add
# noqato the imports so that flake8 doesn't mark them as unused (for project-specific reasons, we want them to be directly importable from this file). However, doing so results in the following isort fix:Is this intentional behavior? If so, why?