mirror of
https://github.com/vale981/clay
synced 2025-03-04 09:11:37 -05:00
pylint, oh please.
This commit is contained in:
parent
d4c4d2077b
commit
39394144bd
6 changed files with 7 additions and 15 deletions
13
.pylintrc
13
.pylintrc
|
@ -4,12 +4,13 @@ max-args = 8
|
|||
|
||||
[messages control]
|
||||
disable =
|
||||
duplicate-code,
|
||||
too-few-public-methods,
|
||||
too-many-public-methods,
|
||||
too-many-instance-attributes,
|
||||
no-self-use,
|
||||
too-many-ancestors
|
||||
duplicate-code, # Meh.
|
||||
too-few-public-methods, # Namespaces are great. (c)
|
||||
too-many-public-methods, # Namespaces are really great!
|
||||
too-many-instance-attributes, # Ditto.
|
||||
no-self-use, # Makes code less readable.
|
||||
too-many-ancestors, # Mixins FTW.
|
||||
useless-object-inheritance # Silly pylint, you forgot Python 2.x!
|
||||
|
||||
|
||||
[miscellaneous]
|
||||
|
|
|
@ -42,7 +42,6 @@ class DebugItem(urwid.AttrMap):
|
|||
def copy_message(self):
|
||||
"""Copy the selected error message to the clipboard"""
|
||||
copy(self.log_record.formatted_message)
|
||||
return None
|
||||
|
||||
|
||||
class DebugPage(urwid.Pile, AbstractPage):
|
||||
|
|
|
@ -42,7 +42,6 @@ class MyPlaylistListItem(urwid.Columns):
|
|||
Start playing the selected playlist
|
||||
"""
|
||||
urwid.emit_signal(self, 'activate', self)
|
||||
return None
|
||||
|
||||
def get_tracks(self):
|
||||
"""
|
||||
|
|
|
@ -41,7 +41,6 @@ class MyStationListItem(urwid.Columns):
|
|||
Start playing the selected station
|
||||
"""
|
||||
urwid.emit_signal(self, 'activate', self)
|
||||
return None
|
||||
|
||||
|
||||
class MyStationListBox(urwid.ListBox):
|
||||
|
|
|
@ -43,7 +43,6 @@ class SearchBox(urwid.Columns):
|
|||
Send a message to urwid to search the filled in search query
|
||||
"""
|
||||
urwid.emit_signal(self, 'search-requested', self.query.edit_text)
|
||||
return None
|
||||
|
||||
|
||||
class SearchPage(urwid.Pile, AbstractPage):
|
||||
|
@ -109,6 +108,5 @@ class SearchPage(urwid.Pile, AbstractPage):
|
|||
self.focus_position = 2
|
||||
else:
|
||||
self.focus_position = 0
|
||||
return None
|
||||
else:
|
||||
return super(SearchPage, self).keypress(size, key)
|
||||
|
|
|
@ -91,8 +91,6 @@ class Slider(urwid.Widget):
|
|||
self.value += 1
|
||||
self.update()
|
||||
|
||||
return None
|
||||
|
||||
def equalizer_down(self):
|
||||
"""
|
||||
Turn the equalizer band down
|
||||
|
@ -101,8 +99,6 @@ class Slider(urwid.Widget):
|
|||
self.value -= 1
|
||||
self.update()
|
||||
|
||||
return None
|
||||
|
||||
def update(self):
|
||||
"""
|
||||
Update player equalizer & toggle redraw.
|
||||
|
|
Loading…
Add table
Reference in a new issue