Commit 2c0b148e by Tyler Hallada

Fix new linting errors

parent 165431c2
......@@ -18,4 +18,4 @@ quality:
pylint --rcfile=.pylintrc $(PACKAGE)
# Ignore module level docstrings and all test files
pep257 --ignore=D100,D203 --match='(?!test).*py' $(PACKAGE)
pep257 --ignore=D100,D104,D203 --match='(?!test).*py' $(PACKAGE)
""" Course activity types. """
"""Course activity types."""
ANY = 'any'
ATTEMPTED_PROBLEM = 'attempted_problem'
......
""" Course demographics. """
"""Course demographics."""
BIRTH_YEAR = 'birth_year'
EDUCATION = 'education'
......
......@@ -6,7 +6,7 @@ from analyticsclient.exceptions import InvalidRequestError
class Course(object):
""" Course-related analytics. """
"""Course-related analytics."""
def __init__(self, client, course_id):
"""
......
class ClientError(Exception):
""" Common base class for all client errors. """
"""Common base class for all client errors."""
pass
class NotFoundError(ClientError):
""" URL was not found. """
"""URL was not found."""
pass
class InvalidRequestError(ClientError):
""" The API request was invalid. """
"""The API request was invalid."""
pass
class TimeoutError(ClientError):
""" The API server did not respond before the timeout expired. """
"""The API server did not respond before the timeout expired."""
pass
......@@ -2,7 +2,7 @@ import analyticsclient.constants.data_format as DF
class Module(object):
""" Module related analytics data. """
"""Module related analytics data."""
def __init__(self, client, course_id, module_id):
"""
......
......@@ -2,7 +2,7 @@ from analyticsclient.exceptions import ClientError
class Status(object):
""" API server status. """
"""API server status."""
def __init__(self, client):
"""
......
......@@ -4,10 +4,10 @@ from analyticsclient.client import Client
class ClientTestCase(TestCase):
""" Base class for client-related tests. """
"""Base class for client-related tests."""
def setUp(self):
""" Configure Client. """
"""Configure Client."""
self.api_url = 'http://localhost:9999/api/v0'
self.client = Client(self.api_url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment