Overriding built-in default ignores through an extension
We'd like to centralize our flake8 configuration through an extension, rather than duplicating the error codes to be selected/ignored in each of our project's
tox.ini. It's already possible to add default ignores and selects through an extension:
@classmethod def add_options(cls, parser): parser.extend_default_ignore(['D1']) parser.extend_default_select(['E226'])
However, if I select an error code that flake8 ignores by default, the built-in default ignore takes precedence. There is also an
remove_default_ignore() method but it only removes ignores that have been preiosly added by this plugin, it doesn't have any effect on the built-in default ignores either.