mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 00:23:33 +01:00
enable unused import checking
The "noqa" marker is for exceptions such as these.
This commit is contained in:
parent
2f3ed3e450
commit
a45ac4a9d6
5 changed files with 6 additions and 7 deletions
|
|
@ -22,9 +22,9 @@ from beets import library, mediafile, config
|
|||
from beets.util import sorted_walk, ancestry, displayable_path
|
||||
|
||||
# Parts of external interface.
|
||||
from .hooks import AlbumInfo, TrackInfo, AlbumMatch, TrackMatch
|
||||
from .match import tag_item, tag_album
|
||||
from .match import Recommendation
|
||||
from .hooks import AlbumInfo, TrackInfo, AlbumMatch, TrackMatch # noqa
|
||||
from .match import tag_item, tag_album # noqa
|
||||
from .match import Recommendation # noqa
|
||||
|
||||
# Global logger.
|
||||
log = logging.getLogger('beets')
|
||||
|
|
|
|||
|
|
@ -18,3 +18,5 @@ Library.
|
|||
from .db import Model, Database
|
||||
from .query import Query, FieldQuery, MatchQuery, AndQuery, OrQuery
|
||||
from .types import Type
|
||||
|
||||
# flake8: noqa
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ from __future__ import print_function
|
|||
import Queue
|
||||
from threading import Thread, Lock
|
||||
import sys
|
||||
import types
|
||||
|
||||
BUBBLE = '__PIPELINE_BUBBLE__'
|
||||
POISON = '__PIPELINE_POISON__'
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ from collections import defaultdict
|
|||
from beets.plugins import BeetsPlugin
|
||||
from beets import ui
|
||||
from beets import library
|
||||
from beets import config
|
||||
|
||||
log = logging.getLogger('beets')
|
||||
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ verbosity=1
|
|||
logging-clear-handlers=1
|
||||
|
||||
[flake8]
|
||||
# F401 module imported but unused
|
||||
# E231 missing whitespace after ',' (used to align visually)
|
||||
ignore=F401,E241
|
||||
ignore=E241
|
||||
|
||||
# List of files that have not been cleand up yet. We will try to reduce
|
||||
# this with each commit
|
||||
|
|
|
|||
Loading…
Reference in a new issue