I'm editing a Django settings file that looks similar to the following:
# flake8: noqa
from lucy.settings.base import *
from lucy.settings.staging_production import *
# This ensures that errors from staging are tagged accordingly in Airbrake's console
AIRBRAKE.update(environment='staging')
LOGGING['handlers'].update(console={
'class': 'logging.StreamHandler'
})
This setting lucy/settings/staging.py
, extends two other ones and I'd like to keep the 'star imports', so I'd like to ignore error codes E403
and E405
for this file.
However, the only way I see to do that is to add the #noqa: E403, E405
comment to every line that it applies; by writing # flake8: noqa
at the top of the file, it ignores all errors.
As far as I can tell from http://flake8.pycqa.org/en/3.1.1/user/ignoring-errors.html, it isn't possible to do this, or have I overlooked something?