mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 22:42:44 +01:00
Use flake8 3.0 style for import errors
It worked in previous versions to put `noqa` on the non-import line that preceded the imports. As of flake8 3.0.0, we apparently need to ignore the import-after-non-import error on every `import` line.
This commit is contained in:
parent
5665696b87
commit
8a234ebc55
1 changed files with 7 additions and 7 deletions
|
|
@ -27,15 +27,15 @@ from contextlib import contextmanager
|
|||
|
||||
|
||||
# Mangle the search path to include the beets sources.
|
||||
sys.path.insert(0, '..') # noqa
|
||||
import beets.library
|
||||
from beets import importer, logging
|
||||
from beets.ui import commands
|
||||
from beets import util
|
||||
import beets
|
||||
sys.path.insert(0, '..')
|
||||
import beets.library # noqa: E402
|
||||
from beets import importer, logging # noqa: E402
|
||||
from beets.ui import commands # noqa: E402
|
||||
from beets import util # noqa: E402
|
||||
import beets # noqa: E402
|
||||
|
||||
# Make sure the development versions of the plugins are used
|
||||
import beetsplug
|
||||
import beetsplug # noqa: E402
|
||||
beetsplug.__path__ = [os.path.abspath(
|
||||
os.path.join(__file__, '..', '..', 'beetsplug')
|
||||
)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue