Commit 701adf3e by Clinton Blackburn

Fixed Pylint violations

parent f4fa6a24
......@@ -4,9 +4,9 @@ A baseclass for a generic client for accessing XBlock Scope.user_state field dat
from abc import abstractmethod
from collections import namedtuple
from datetime import datetime
from contracts import contract, new_contract, ContractsMeta
from datetime import datetime
from opaque_keys.edx.keys import UsageKey, DefinitionKey
from xblock.fields import Scope, ScopeBase
......
......@@ -17,13 +17,14 @@ test suite, use the snippet:
from datetime import datetime
from unittest import TestCase
import pytz
import pytz
from contracts import contract
from edx_user_state_client.interface import XBlockUserStateClient, XBlockUserState
from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator
from xblock.fields import Scope
from edx_user_state_client.interface import XBlockUserStateClient, XBlockUserState
class _UserStateClientTestUtils(TestCase):
"""
......
......@@ -22,7 +22,6 @@
#
# ------------------------------
[MASTER]
profile = no
ignore =
persistent = yes
load-plugins = edx_lint.pylint
......@@ -48,6 +47,7 @@ disable =
too-many-branches,
too-many-arguments,
too-many-locals,
unused-wildcard-import,
duplicate-code
[REPORTS]
......@@ -55,10 +55,8 @@ output-format = text
files-output = no
reports = no
evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
comment = no
[BASIC]
required-attributes =
bad-functions = map,filter,apply,input
module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
const-rgx = (([A-Z_][A-Z0-9_]*)|(__.*__)|log|urlpatterns)$
......@@ -72,7 +70,7 @@ class-attribute-rgx = ([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
good-names = f,i,j,k,db,ex,Run,_,__
bad-names = foo,bar,baz,toto,tutu,tata
no-docstring-rgx = __.*__|test_.+|setUp|tearDown
no-docstring-rgx = __.*__$|test_.+|setUp$|setUpClass$|tearDown$|tearDownClass$|Meta$
docstring-min-length = -1
[FORMAT]
......@@ -95,7 +93,7 @@ ignore-imports = no
[TYPECHECK]
ignore-mixin-members = yes
ignored-classes = SQLObject
zope = no
unsafe-load-any-extension = yes
generated-members =
REQUEST,
acl_users,
......@@ -125,7 +123,6 @@ dummy-variables-rgx = _|dummy|unused|.*_unused
additional-builtins =
[CLASSES]
ignore-iface-methods = isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
defining-attr-methods = __init__,__new__,setUp
valid-classmethod-first-arg = cls
valid-metaclass-classmethod-first-arg = mcs
......@@ -151,4 +148,4 @@ int-import-graph =
[EXCEPTIONS]
overgeneral-exceptions = Exception
# 72ba3e91d367cc6c60837a8b467ed70f8fa77e7e
# 34eaa1014ee153fd195488d853ed9e725e43ac35
[MASTER]
load-plugins = edx_lint.pylint
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