Disable too-many-* (#4107)

* Disable too-many-* and too-few-public-methods

* Remove globally disabled pylint warnings
This commit is contained in:
Fabian Affolter authored and GitHub committed 2016-10-30 22:18:53 +01:00
1 parent b910a9917d
commit be272ac64a
298 files changed
+271 -570

No files matched your search

+4 -2
View File
@@ -17,7 +17,8 @@ def fire_pilight_message(protocol, data):
HASS.bus.fire(pilight.EVENT, message)
def setup_function(): # pylint: disable=invalid-name
# pylint: disable=invalid-name
def setup_function():
"""Initialize a Home Assistant server."""
global HASS
@@ -25,7 +26,8 @@ def setup_function(): # pylint: disable=invalid-name
HASS.config.components = ['pilight']
def teardown_function(): # pylint: disable=invalid-name
# pylint: disable=invalid-name
def teardown_function():
"""Stop the Home Assistant server."""
HASS.stop()
@@ -31,7 +31,6 @@ ALERT_MESSAGE = 'This is a test alert message'
def mocked_requests_get(*args, **kwargs):
"""Mock requests.get invocations."""
# pylint: disable=too-few-public-methods
class MockResponse:
"""Class to represent a mocked response."""