So, I have roughly this code:
from .fixtures import some_fixture
def test_whatever(some_fixture):
print(some_fixture)
I get two warnings from flake8 for this:
F401 '.fixtures.some_fixture' imported but unused
and
F811 redefinition of unused 'some_fixture' from line 1
I'm not going to move fixtures anywhere, but "decorating" every test definition and every import with noqa and pylint comments seems like a very sad and colorless life (especially so that sometimes it will silence a legitimate warning, s.a. when a fixture isn't really used).
What else can I do?