Closed sergeyklay closed 3 years ago
I don't understand how this is a false positive? Are you working on pytest the project? If not, are pytest and django not both 3rd party modules to your code and/or tests?
To be clear, flake8-import-order
is detecting both pytest
and django
as 3rd party libraries. Those should be in a single block like so:
import pytest
from django.core.management import call_command
No newline between the imports
@sigmavirus24 Hm... Frankly speaking flake8-import-order
saying nothing about something like
import os
from django.core.wsgi import get_wsgi_application
and I was probably misled about how smarkets style works. Now I got it. Thank you.
os
is standard library so there should be an extra newline there
Yeah, now I got it. Thank you!
Hello,
It seems flake8-import-order false positive triggered with such code
Configuration from
setup.cfg
:Versions:
Is this intentional?