Using # noqa on a non-import line before imports no longer silences warnings for import statements
Previously if you had code like:
import celery.backends celery.backends.BACKEND_ALIASES["rediss"] = "warehouse.celery:TLSRedisBackend" # noqa from celery import Celery, Task from celery.backends.redis import RedisBackend as _RedisBackend from celery.signals import celeryd_init from pyramid import scripting from pyramid.threadlocal import get_current_request from raven.contrib.celery import register_signal, register_logger_signal from warehouse.config import Environment, configure
Flake8 would not complain about the later imports coming after the non import statement because of the
# noqa on that line. However since flake8 3.0 this is now raising a warning on each and every import after the non-import statement line. This makes it somewhat more annoying to ignore these kinds of errors because now I have to add a
# noqa to every single import statement.