Fix/ignore remaining pylint warnings

This commit is contained in:
Stein Magnus Jodal 2010-10-25 22:03:40 +02:00
parent b59e666bd5
commit 40c1547c15
4 changed files with 16 additions and 1 deletions

View File

@ -10,6 +10,9 @@ class BasePlaybackController(object):
:type backend: :class:`BaseBackend`
"""
# pylint: disable = R0902
# Too many instance attributes
#: Constant representing the paused state.
PAUSED = u'paused'
@ -130,6 +133,9 @@ class BasePlaybackController(object):
Not necessarily the same track as :attr:`cp_track_at_next`.
"""
# pylint: disable = R0911
# Too many return statements
cp_tracks = self.backend.current_playlist.cp_tracks
if not cp_tracks:

View File

@ -11,6 +11,9 @@ from mopidy.utils.process import BaseThread
logger = logging.getLogger('mopidy.backends.libspotify.session_manager')
# pylint: disable = R0901
# LibspotifySessionManager: Too many ancestors (9/7)
class LibspotifySessionManager(SpotifySessionManager, BaseThread):
cache_location = os.path.expanduser(settings.SPOTIFY_LIB_CACHE)
settings_location = os.path.expanduser(settings.SPOTIFY_LIB_CACHE)
@ -65,6 +68,8 @@ class LibspotifySessionManager(SpotifySessionManager, BaseThread):
def music_delivery(self, session, frames, frame_size, num_frames,
sample_type, sample_rate, channels):
"""Callback used by pyspotify"""
# pylint: disable = R0913
# Too many arguments (8/5)
assert sample_type == 0, u'Expects 16-bit signed integer samples'
capabilites = """
audio/x-raw-int,

View File

@ -5,6 +5,9 @@ class DummyOutput(BaseOutput):
Audio output used for testing.
"""
# pylint: disable = R0902
# Too many instance attributes (9/7)
#: For testing. :class:`True` if :meth:`start` has been called.
start_called = False

View File

@ -14,9 +14,10 @@
# R0903 - Too few public methods (%s/%s)
# R0904 - Too many public methods (%s/%s)
# W0141 - Used builtin function %r
# R0921 - Abstract class not referenced
# W0142 - Used * or ** magic
# W0401 - Wildcard import %s
# W0511 - TODO, FIXME and XXX in the code
# W0613 - Unused argument %r
#
disable = C0103,C0111,C0112,E0102,E0202,E1101,R0201,R0801,R0903,R0904,W0141,W0142,W0401,W0511,W0613
disable = C0103,C0111,C0112,E0102,E0202,E1101,R0201,R0801,R0903,R0904,R0921,W0141,W0142,W0401,W0511,W0613