Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-user-state-client
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-user-state-client
Commits
701adf3e
Commit
701adf3e
authored
Jan 27, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Pylint violations
parent
f4fa6a24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
edx_user_state_client/interface.py
+1
-1
edx_user_state_client/tests.py
+3
-2
pylintrc
+4
-7
pylintrc_tweaks
+2
-0
No files found.
edx_user_state_client/interface.py
View file @
701adf3e
...
...
@@ -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
...
...
edx_user_state_client/tests.py
View file @
701adf3e
...
...
@@ -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
):
"""
...
...
pylintrc
View file @
701adf3e
...
...
@@ -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
pylintrc_tweaks
0 → 100644
View file @
701adf3e
[MASTER]
load-plugins = edx_lint.pylint
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment