Skip to content

WIP: Support file level ignore

username-removed-821738 requested to merge cybergrind/flake8:issue_89 into master

Hey.

I'd like to try implement file level ignores from #89 (closed) Primarily because it's quite noisy when you're using pytest fixtues imported from somewhere, so in most cases I just want to disable F811 (redefinition of unused) warning.

This is just PoC: it works but there are no documentation and tests

Current implementation accepts ignores in following format:

# flake8: noqa: F811,F401
from .fixtures import example  # F401 (unused import) here


def mytest(example):  # F811 (redefinition of unused) here
    pass


class TestClass:
    def test_mytest(example):  # F811 here
        pass

I'm ready for any suggestions and commentaries

Merge request reports