TEST: Disable pylint checks 'cause of tornado

These checks need to be disabled, so that pylint is happy again.
Unfortunately, Mopidy / Tornado wants those attributes this way.
This commit is contained in:
Dominique Barton 2020-02-09 02:57:38 +01:00
parent 69ae6b9348
commit d1a5ecf3d6

View file

@ -32,9 +32,9 @@ class LatestHandler(RequestHandler): # pylint: disable=abstract-method
:param mopidy.core.Core mopidy_core: The mopidy core instance
'''
self.core = core
self.core = core # pylint: disable=attribute-defined-outside-init
def get(self, *args, **kwargs):
def get(self, *args, **kwargs): # pylint: disable=unused-argument
'''
Handle GET request.
'''
@ -71,9 +71,9 @@ class RegistryHandler(RequestHandler): # pylint: disable=abstract-method
:param mopidy.core.Core mopidy_core: The mopidy core instance
'''
self.core = core
self.core = core # pylint: disable=attribute-defined-outside-init
def get(self, *args, **kwargs):
def get(self, *args, **kwargs): # pylint: disable=unused-argument
'''
Handle GET request.
'''
@ -103,9 +103,9 @@ class RegisterHandler(RequestHandler): # pylint: disable=abstract-method
:param mopidy.core.Core mopidy_core: The mopidy core instance
'''
self.core = core
self.core = core # pylint: disable=attribute-defined-outside-init
def post(self, *args, **kwargs):
def post(self, *args, **kwargs): # pylint: disable=unused-argument
'''
Handle POST request.
'''
@ -134,7 +134,7 @@ class RegisterHandler(RequestHandler): # pylint: disable=abstract-method
self.set_header('Content-type', 'application/json')
self.write(dumps(data))
def put(self, *args, **kwargs):
def put(self, *args, **kwargs): # pylint: disable=unused-argument
'''
Handle PUT request.
'''
@ -152,9 +152,9 @@ class TagClassesHandler(RequestHandler): # pylint: disable=abstract-method
:param mopidy.core.Core mopidy_core: The mopidy core instance
'''
self.core = core
self.core = core # pylint: disable=attribute-defined-outside-init
def get(self, *args, **kwargs):
def get(self, *args, **kwargs): # pylint: disable=unused-argument
'''
Handle GET request.
'''