Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
b41e70f5
Commit
b41e70f5
authored
Jul 10, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Pylint violations `deprecated-pragma`, `bad-option-value`
parent
ba8fd1c2
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
19 additions
and
19 deletions
+19
-19
common/djangoapps/embargo/forms.py
+1
-1
common/djangoapps/student/views.py
+1
-1
common/djangoapps/third_party_auth/pipeline.py
+2
-2
common/djangoapps/third_party_auth/tests/test_pipeline.py
+2
-2
common/djangoapps/third_party_auth/tests/test_pipeline_integration.py
+1
-1
common/djangoapps/third_party_auth/tests/test_settings.py
+3
-3
lms/lib/xblock/test/test_mixin.py
+1
-1
pavelib/acceptance_test.py
+1
-1
pavelib/bok_choy.py
+1
-1
pavelib/i18n.py
+1
-1
pavelib/tests.py
+1
-1
pavelib/utils/test/bokchoy_utils.py
+2
-2
pavelib/utils/test/suites/bokchoy_suite.py
+1
-1
pavelib/utils/test/suites/suite.py
+1
-1
No files found.
common/djangoapps/embargo/forms.py
View file @
b41e70f5
...
@@ -55,7 +55,7 @@ class RestrictedCourseForm(forms.ModelForm):
...
@@ -55,7 +55,7 @@ class RestrictedCourseForm(forms.ModelForm):
return
course_key
return
course_key
class
IPFilterForm
(
forms
.
ModelForm
):
# pylint: disable=incomplete-protocol
class
IPFilterForm
(
forms
.
ModelForm
):
"""Form validating entry of IP addresses"""
"""Form validating entry of IP addresses"""
class
Meta
:
# pylint: disable=missing-docstring
class
Meta
:
# pylint: disable=missing-docstring
...
...
common/djangoapps/student/views.py
View file @
b41e70f5
...
@@ -1043,7 +1043,7 @@ def accounts_login(request):
...
@@ -1043,7 +1043,7 @@ def accounts_login(request):
# Need different levels of logging
# Need different levels of logging
@ensure_csrf_cookie
@ensure_csrf_cookie
def
login_user
(
request
,
error
=
""
):
# pylint: disable
-msg
=too-many-statements,unused-argument
def
login_user
(
request
,
error
=
""
):
# pylint: disable=too-many-statements,unused-argument
"""AJAX request to log in the user."""
"""AJAX request to log in the user."""
backend_name
=
None
backend_name
=
None
...
...
common/djangoapps/third_party_auth/pipeline.py
View file @
b41e70f5
...
@@ -58,7 +58,7 @@ See http://psa.matiasaguirre.net/docs/pipeline.html for more docs.
...
@@ -58,7 +58,7 @@ See http://psa.matiasaguirre.net/docs/pipeline.html for more docs.
"""
"""
import
random
import
random
import
string
# pylint: disable
-msg
=deprecated-module
import
string
# pylint: disable=deprecated-module
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
urllib
import
urllib
import
analytics
import
analytics
...
@@ -431,7 +431,7 @@ def running(request):
...
@@ -431,7 +431,7 @@ def running(request):
# Pipeline functions.
# Pipeline functions.
# Signatures are set by python-social-auth; prepending 'unused_' causes
# Signatures are set by python-social-auth; prepending 'unused_' causes
# TypeError on dispatch to the auth backend's authenticate().
# TypeError on dispatch to the auth backend's authenticate().
# pylint: disable
-msg
=unused-argument
# pylint: disable=unused-argument
def
parse_query_params
(
strategy
,
response
,
*
args
,
**
kwargs
):
def
parse_query_params
(
strategy
,
response
,
*
args
,
**
kwargs
):
...
...
common/djangoapps/third_party_auth/tests/test_pipeline.py
View file @
b41e70f5
...
@@ -7,8 +7,8 @@ from third_party_auth.tests import testutil
...
@@ -7,8 +7,8 @@ from third_party_auth.tests import testutil
import
unittest
import
unittest
# Allow tests access to protected methods (or module-protected methods) under
# Allow tests access to protected methods (or module-protected methods) under
test.
#
test. pylint: disable-msg
=protected-access
#
pylint: disable
=protected-access
class
MakeRandomPasswordTest
(
testutil
.
TestCase
):
class
MakeRandomPasswordTest
(
testutil
.
TestCase
):
...
...
common/djangoapps/third_party_auth/tests/test_pipeline_integration.py
View file @
b41e70f5
...
@@ -13,7 +13,7 @@ from social.apps.django_app.default import models as social_models
...
@@ -13,7 +13,7 @@ from social.apps.django_app.default import models as social_models
# Get Django User model by reference from python-social-auth. Not a type
# Get Django User model by reference from python-social-auth. Not a type
# constant, pylint.
# constant, pylint.
User
=
social_models
.
DjangoStorage
.
user
.
user_model
()
# pylint: disable
-msg
=invalid-name
User
=
social_models
.
DjangoStorage
.
user
.
user_model
()
# pylint: disable=invalid-name
class
TestCase
(
testutil
.
TestCase
,
test
.
TestCase
):
class
TestCase
(
testutil
.
TestCase
,
test
.
TestCase
):
...
...
common/djangoapps/third_party_auth/tests/test_settings.py
View file @
b41e70f5
...
@@ -21,10 +21,10 @@ _SETTINGS_MAP = {
...
@@ -21,10 +21,10 @@ _SETTINGS_MAP = {
class
SettingsUnitTest
(
testutil
.
TestCase
):
class
SettingsUnitTest
(
testutil
.
TestCase
):
"""Unit tests for settings management code."""
"""Unit tests for settings management code."""
# Allow access to protected methods (or module-protected methods) under
# Allow access to protected methods (or module-protected methods) under
test.
#
test. pylint: disable-msg
=protected-access
#
pylint: disable
=protected-access
# Suppress sprurious no-member warning on fakes.
# Suppress sprurious no-member warning on fakes.
# pylint: disable
-msg
=no-member
# pylint: disable=no-member
def
setUp
(
self
):
def
setUp
(
self
):
super
(
SettingsUnitTest
,
self
)
.
setUp
()
super
(
SettingsUnitTest
,
self
)
.
setUp
()
...
...
lms/lib/xblock/test/test_mixin.py
View file @
b41e70f5
...
@@ -230,7 +230,7 @@ class XBlockGetParentTest(LmsXBlockMixinTestCase):
...
@@ -230,7 +230,7 @@ class XBlockGetParentTest(LmsXBlockMixinTestCase):
)
)
class
RenamedTuple
(
tuple
):
# pylint: disable=incomplete-protocol
class
RenamedTuple
(
tuple
):
"""
"""
This class is only used to allow overriding __name__ on the tuples passed
This class is only used to allow overriding __name__ on the tuples passed
through ddt, in order to have the generated test names make sense.
through ddt, in order to have the generated test names make sense.
...
...
pavelib/acceptance_test.py
View file @
b41e70f5
...
@@ -8,7 +8,7 @@ from optparse import make_option
...
@@ -8,7 +8,7 @@ from optparse import make_option
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
...
pavelib/bok_choy.py
View file @
b41e70f5
...
@@ -12,7 +12,7 @@ import os
...
@@ -12,7 +12,7 @@ import os
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
...
pavelib/i18n.py
View file @
b41e70f5
...
@@ -9,7 +9,7 @@ from paver.easy import task, cmdopts, needs, sh
...
@@ -9,7 +9,7 @@ from paver.easy import task, cmdopts, needs, sh
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
@task
@task
...
...
pavelib/tests.py
View file @
b41e70f5
...
@@ -11,7 +11,7 @@ from optparse import make_option
...
@@ -11,7 +11,7 @@ from optparse import make_option
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
...
pavelib/utils/test/bokchoy_utils.py
View file @
b41e70f5
...
@@ -13,7 +13,7 @@ from pavelib.utils.process import run_background_process
...
@@ -13,7 +13,7 @@ from pavelib.utils.process import run_background_process
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
@@ -80,7 +80,7 @@ def wait_for_server(server, port):
...
@@ -80,7 +80,7 @@ def wait_for_server(server, port):
if
int
(
response
.
status
)
==
200
:
if
int
(
response
.
status
)
==
200
:
server_ok
=
True
server_ok
=
True
break
break
except
:
# pylint: disable
-msg
=bare-except
except
:
# pylint: disable=bare-except
pass
pass
attempts
+=
1
attempts
+=
1
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
b41e70f5
...
@@ -12,7 +12,7 @@ from pavelib.utils.test import utils as test_utils
...
@@ -12,7 +12,7 @@ from pavelib.utils.test import utils as test_utils
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
...
pavelib/utils/test/suites/suite.py
View file @
b41e70f5
...
@@ -10,7 +10,7 @@ from pavelib.utils.process import kill_process
...
@@ -10,7 +10,7 @@ from pavelib.utils.process import kill_process
try
:
try
:
from
pygments.console
import
colorize
from
pygments.console
import
colorize
except
ImportError
:
except
ImportError
:
colorize
=
lambda
color
,
text
:
text
# pylint: disable
-msg
=invalid-name
colorize
=
lambda
color
,
text
:
text
# pylint: disable=invalid-name
__test__
=
False
# do not collect
__test__
=
False
# do not collect
...
...
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