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
e0f1d3f3
Commit
e0f1d3f3
authored
Nov 29, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/pylint: disable=C0111/pylint: disable=missing-docstring/
parent
0dad9da5
Hide whitespace changes
Inline
Side-by-side
Showing
69 changed files
with
81 additions
and
81 deletions
+81
-81
cms/djangoapps/contentstore/features/advanced_settings.py
+1
-1
cms/djangoapps/contentstore/features/checklists.py
+1
-1
cms/djangoapps/contentstore/features/common.py
+1
-1
cms/djangoapps/contentstore/features/component.py
+1
-1
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+1
-1
cms/djangoapps/contentstore/features/course-export.py
+1
-1
cms/djangoapps/contentstore/features/course-outline.py
+1
-1
cms/djangoapps/contentstore/features/course-settings.py
+1
-1
cms/djangoapps/contentstore/features/course-team.py
+1
-1
cms/djangoapps/contentstore/features/course-updates.py
+1
-1
cms/djangoapps/contentstore/features/course_import.py
+1
-1
cms/djangoapps/contentstore/features/courses.py
+1
-1
cms/djangoapps/contentstore/features/discussion-editor.py
+1
-1
cms/djangoapps/contentstore/features/grading.py
+1
-1
cms/djangoapps/contentstore/features/help.py
+1
-1
cms/djangoapps/contentstore/features/html-editor.py
+1
-1
cms/djangoapps/contentstore/features/pages.py
+1
-1
cms/djangoapps/contentstore/features/problem-editor.py
+1
-1
cms/djangoapps/contentstore/features/signup.py
+1
-1
cms/djangoapps/contentstore/features/textbooks.py
+1
-1
cms/djangoapps/contentstore/features/transcripts.py
+1
-1
cms/djangoapps/contentstore/features/upload.py
+1
-1
cms/djangoapps/contentstore/features/video_editor.py
+1
-1
cms/djangoapps/contentstore/features/video_handout.py
+1
-1
cms/djangoapps/contentstore/views/error.py
+1
-1
common/djangoapps/enrollment/serializers.py
+1
-1
common/djangoapps/student/tests/factories.py
+1
-1
common/djangoapps/terrain/course_helpers.py
+1
-1
common/djangoapps/terrain/steps.py
+1
-1
common/djangoapps/terrain/ui_helpers.py
+1
-1
common/djangoapps/user_api/tests/factories.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/persistent_factories.py
+1
-1
common/lib/xmodule/xmodule/tests/test_capa_module.py
+1
-1
common/lib/xmodule/xmodule/tests/test_xml_module.py
+1
-1
common/lib/xmodule/xmodule/video_module/transcripts_utils.py
+4
-4
lms/djangoapps/bulk_email/forms.py
+2
-2
lms/djangoapps/bulk_email/models.py
+2
-2
lms/djangoapps/courseware/features/certificates.py
+1
-1
lms/djangoapps/courseware/features/common.py
+1
-1
lms/djangoapps/courseware/features/conditional.py
+1
-1
lms/djangoapps/courseware/features/courseware.py
+1
-1
lms/djangoapps/courseware/features/courseware_common.py
+1
-1
lms/djangoapps/courseware/features/events.py
+1
-1
lms/djangoapps/courseware/features/homepage.py
+1
-1
lms/djangoapps/courseware/features/login.py
+1
-1
lms/djangoapps/courseware/features/lti.py
+1
-1
lms/djangoapps/courseware/features/navigation.py
+1
-1
lms/djangoapps/courseware/features/openended.py
+1
-1
lms/djangoapps/courseware/features/problems.py
+1
-1
lms/djangoapps/courseware/features/problems_setup.py
+1
-1
lms/djangoapps/courseware/features/registration.py
+1
-1
lms/djangoapps/courseware/features/signup.py
+1
-1
lms/djangoapps/courseware/features/video.py
+1
-1
lms/djangoapps/courseware/features/word_cloud.py
+1
-1
lms/djangoapps/courseware/tests/factories.py
+1
-1
lms/djangoapps/courseware/tests/test_access.py
+1
-1
lms/djangoapps/dashboard/tests/test_support.py
+1
-1
lms/djangoapps/django_comment_client/base/tests.py
+1
-1
lms/djangoapps/django_comment_client/forum/tests.py
+1
-1
lms/djangoapps/instructor/features/bulk_email.py
+1
-1
lms/djangoapps/instructor/features/common.py
+1
-1
lms/djangoapps/instructor/features/data_download.py
+1
-1
lms/djangoapps/instructor/tests/test_hint_manager.py
+1
-1
lms/djangoapps/instructor/tests/test_legacy_xss.py
+1
-1
lms/djangoapps/instructor/views/api.py
+7
-7
lms/djangoapps/mobile_api/users/serializers.py
+2
-2
lms/djangoapps/shoppingcart/exceptions.py
+1
-1
lms/djangoapps/survey/admin.py
+1
-1
lms/djangoapps/verify_student/exceptions.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/advanced_settings.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/checklists.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/common.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
import
os
...
...
cms/djangoapps/contentstore/features/component.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# Lettuce formats proposed definitions for unimplemented steps with the
...
...
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
lettuce
import
world
from
nose.tools
import
assert_equal
,
assert_in
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/features/course-export.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
...
...
cms/djangoapps/contentstore/features/course-outline.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/course-settings.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/course-team.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/course-updates.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/course_import.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
...
...
cms/djangoapps/contentstore/features/courses.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/discussion-editor.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/grading.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/help.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
...
...
cms/djangoapps/contentstore/features/html-editor.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
collections
import
OrderedDict
...
...
cms/djangoapps/contentstore/features/pages.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
import
json
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/signup.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/textbooks.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/transcripts.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
import
os
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/upload.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/video_editor.py
View file @
e0f1d3f3
# -*- coding: utf-8 -*-
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
import
requests
from
lettuce
import
world
,
step
...
...
cms/djangoapps/contentstore/features/video_handout.py
View file @
e0f1d3f3
# -*- coding: utf-8 -*-
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
lettuce
import
world
,
step
from
nose.tools
import
assert_true
# pylint: disable=E0611
...
...
cms/djangoapps/contentstore/views/error.py
View file @
e0f1d3f3
# pylint: disable=
C0111
,W0613
# pylint: disable=
missing-docstring
,W0613
from
django.http
import
(
HttpResponse
,
HttpResponseServerError
,
HttpResponseNotFound
)
...
...
common/djangoapps/enrollment/serializers.py
View file @
e0f1d3f3
...
...
@@ -60,7 +60,7 @@ class CourseEnrollmentSerializer(serializers.ModelSerializer):
"""Retrieves the username from the associated model."""
return
model
.
username
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
CourseEnrollment
fields
=
(
'created'
,
'mode'
,
'is_active'
,
'course'
,
'student'
)
lookup_field
=
'username'
...
...
common/djangoapps/student/tests/factories.py
View file @
e0f1d3f3
...
...
@@ -13,7 +13,7 @@ from pytz import UTC
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
# Factories don't have __init__ methods, and are self documenting
# pylint: disable=W0232,
C0111
# pylint: disable=W0232,
missing-docstring
class
GroupFactory
(
DjangoModelFactory
):
...
...
common/djangoapps/terrain/course_helpers.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
import
urllib
...
...
common/djangoapps/terrain/steps.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# Disable the "wildcard import" warning so we can bring in all methods from
...
...
common/djangoapps/terrain/ui_helpers.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
...
...
common/djangoapps/user_api/tests/factories.py
View file @
e0f1d3f3
...
...
@@ -7,7 +7,7 @@ from opaque_keys.edx.locations import SlashSeparatedCourseKey
# Factories don't have __init__ methods, and are self documenting
# pylint: disable=W0232,
C0111
# pylint: disable=W0232,
missing-docstring
class
UserPreferenceFactory
(
DjangoModelFactory
):
FACTORY_FOR
=
UserPreference
...
...
common/lib/xmodule/xmodule/modulestore/tests/persistent_factories.py
View file @
e0f1d3f3
...
...
@@ -6,7 +6,7 @@ import factory
from
factory.helpers
import
lazy_attribute
from
opaque_keys.edx.keys
import
UsageKey
# Factories don't have __init__ methods, and are self documenting
# pylint: disable=W0232,
C0111
# pylint: disable=W0232,
missing-docstring
class
SplitFactory
(
factory
.
Factory
):
...
...
common/lib/xmodule/xmodule/tests/test_capa_module.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
"""
Tests of the Capa XModule
"""
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=R0904
# pylint: disable=C0103
# pylint: disable=C0302
...
...
common/lib/xmodule/xmodule/tests/test_xml_module.py
View file @
e0f1d3f3
# disable missing docstring
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
import
unittest
...
...
common/lib/xmodule/xmodule/video_module/transcripts_utils.py
View file @
e0f1d3f3
...
...
@@ -19,19 +19,19 @@ from xmodule.contentstore.django import contentstore
log
=
logging
.
getLogger
(
__name__
)
class
TranscriptException
(
Exception
):
# pylint
disable=C0111
class
TranscriptException
(
Exception
):
# pylint
: disable=missing-docstring
pass
class
TranscriptsGenerationException
(
Exception
):
# pylint
disable=C0111
class
TranscriptsGenerationException
(
Exception
):
# pylint
: disable=missing-docstring
pass
class
GetTranscriptsFromYouTubeException
(
Exception
):
# pylint
disable=C0111
class
GetTranscriptsFromYouTubeException
(
Exception
):
# pylint
: disable=missing-docstring
pass
class
TranscriptsRequestValidationException
(
Exception
):
# pylint
disable=C0111
class
TranscriptsRequestValidationException
(
Exception
):
# pylint
: disable=missing-docstring
pass
...
...
lms/djangoapps/bulk_email/forms.py
View file @
e0f1d3f3
...
...
@@ -22,7 +22,7 @@ class CourseEmailTemplateForm(forms.ModelForm): # pylint: disable=R0924
name
=
forms
.
CharField
(
required
=
False
)
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
CourseEmailTemplate
fields
=
(
'html_template'
,
'plain_template'
,
'name'
)
...
...
@@ -76,7 +76,7 @@ class CourseEmailTemplateForm(forms.ModelForm): # pylint: disable=R0924
class
CourseAuthorizationAdminForm
(
forms
.
ModelForm
):
# pylint: disable=R0924
"""Input form for email enabling, allowing us to verify data."""
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
CourseAuthorization
def
clean_course_id
(
self
):
...
...
lms/djangoapps/bulk_email/models.py
View file @
e0f1d3f3
...
...
@@ -43,7 +43,7 @@ class Email(models.Model):
created
=
models
.
DateTimeField
(
auto_now_add
=
True
)
modified
=
models
.
DateTimeField
(
auto_now
=
True
)
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
abstract
=
True
...
...
@@ -141,7 +141,7 @@ class Optout(models.Model):
user
=
models
.
ForeignKey
(
User
,
db_index
=
True
,
null
=
True
)
course_id
=
CourseKeyField
(
max_length
=
255
,
db_index
=
True
)
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
unique_together
=
(
'user'
,
'course_id'
)
...
...
lms/djangoapps/courseware/features/certificates.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/common.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
__future__
import
absolute_import
...
...
lms/djangoapps/courseware/features/conditional.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
steps
...
...
lms/djangoapps/courseware/features/courseware.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/courseware_common.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
...
...
lms/djangoapps/courseware/features/events.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
lettuce
import
step
from
lettuce
import
world
...
...
lms/djangoapps/courseware/features/homepage.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/login.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
step
,
world
...
...
lms/djangoapps/courseware/features/lti.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
import
datetime
import
os
import
pytz
...
...
lms/djangoapps/courseware/features/navigation.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/openended.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/problems.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
Steps for problem.feature lettuce tests
'''
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/problems_setup.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
# EVERY PROBLEM TYPE MUST HAVE THE FOLLOWING:
...
...
lms/djangoapps/courseware/features/registration.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/signup.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/courseware/features/video.py
View file @
e0f1d3f3
# -*- coding: utf-8 -*-
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
lettuce
import
world
,
step
,
before
,
after
import
json
...
...
lms/djangoapps/courseware/features/word_cloud.py
View file @
e0f1d3f3
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
from
time
import
sleep
...
...
lms/djangoapps/courseware/tests/factories.py
View file @
e0f1d3f3
# Factories don't have __init__ methods, and are self documenting
# pylint: disable=W0232,
C0111
# pylint: disable=W0232,
missing-docstring
import
json
from
functools
import
partial
import
factory
...
...
lms/djangoapps/courseware/tests/test_access.py
View file @
e0f1d3f3
...
...
@@ -15,7 +15,7 @@ from xmodule.course_module import (
CATALOG_VISIBILITY_CATALOG_AND_ABOUT
,
CATALOG_VISIBILITY_ABOUT
,
CATALOG_VISIBILITY_NONE
)
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=W0212
...
...
lms/djangoapps/dashboard/tests/test_support.py
View file @
e0f1d3f3
...
...
@@ -49,7 +49,7 @@ class RefundTests(ModuleStoreTestCase):
Order
.
objects
.
filter
(
user
=
self
.
student
)
.
delete
()
def
_enroll
(
self
,
purchase
=
True
):
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
CourseEnrollment
.
enroll
(
self
.
student
,
self
.
course_id
,
self
.
course_mode
.
mode_slug
)
if
purchase
:
self
.
order
=
Order
.
get_cart_for_user
(
self
.
student
)
...
...
lms/djangoapps/django_comment_client/base/tests.py
View file @
e0f1d3f3
...
...
@@ -27,7 +27,7 @@ log = logging.getLogger(__name__)
CS_PREFIX
=
"http://localhost:4567/api/v1"
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
class
MockRequestSetupMixin
(
object
):
...
...
lms/djangoapps/django_comment_client/forum/tests.py
View file @
e0f1d3f3
...
...
@@ -30,7 +30,7 @@ TEST_DATA_MONGO_MODULESTORE = mixed_store_config(TEST_DATA_DIR, {}, include_xml=
log
=
logging
.
getLogger
(
__name__
)
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
@override_settings
(
MODULESTORE
=
TEST_DATA_MONGO_MODULESTORE
)
...
...
lms/djangoapps/instructor/features/bulk_email.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
Define steps for bulk email acceptance test.
"""
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/instructor/features/common.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
Define common steps for instructor dashboard acceptance tests.
"""
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
__future__
import
absolute_import
...
...
lms/djangoapps/instructor/features/data_download.py
View file @
e0f1d3f3
...
...
@@ -3,7 +3,7 @@ Define steps for instructor dashboard - data download tab
acceptance tests.
"""
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
# pylint: disable=redefined-outer-name
from
lettuce
import
world
,
step
...
...
lms/djangoapps/instructor/tests/test_hint_manager.py
View file @
e0f1d3f3
...
...
@@ -12,7 +12,7 @@ from student.tests.factories import UserFactory
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
from
xmodule.modulestore.tests.factories
import
CourseFactory
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
@override_settings
(
MODULESTORE
=
TEST_DATA_MONGO_MODULESTORE
)
...
...
lms/djangoapps/instructor/tests/test_legacy_xss.py
View file @
e0f1d3f3
...
...
@@ -15,7 +15,7 @@ from xmodule.modulestore.tests.factories import CourseFactory
from
instructor.views
import
legacy
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
@override_settings
(
MODULESTORE
=
TEST_DATA_MONGO_MODULESTORE
)
...
...
lms/djangoapps/instructor/views/api.py
View file @
e0f1d3f3
...
...
@@ -95,7 +95,7 @@ def common_exceptions_400(func):
Catches common exceptions and renders matching 400 errors.
(decorator without arguments)
"""
def
wrapped
(
request
,
*
args
,
**
kwargs
):
# pylint: disable=
C0111
def
wrapped
(
request
,
*
args
,
**
kwargs
):
# pylint: disable=
missing-docstring
use_json
=
(
request
.
is_ajax
()
or
request
.
META
.
get
(
"HTTP_ACCEPT"
,
""
)
.
startswith
(
"application/json"
))
try
:
...
...
@@ -129,8 +129,8 @@ def require_query_params(*args, **kwargs):
required_params
+=
[(
key
,
kwargs
[
key
])
for
key
in
kwargs
]
# required_params = e.g. [('action', 'enroll or unenroll'), ['emails', None]]
def
decorator
(
func
):
# pylint: disable=
C0111
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
C0111
def
decorator
(
func
):
# pylint: disable=
missing-docstring
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
missing-docstring
request
=
args
[
0
]
error_response_data
=
{
...
...
@@ -166,8 +166,8 @@ def require_post_params(*args, **kwargs):
required_params
+=
[(
key
,
kwargs
[
key
])
for
key
in
kwargs
]
# required_params = e.g. [('action', 'enroll or unenroll'), ['emails', None]]
def
decorator
(
func
):
# pylint: disable=
C0111
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
C0111
def
decorator
(
func
):
# pylint: disable=
missing-docstring
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
missing-docstring
request
=
args
[
0
]
error_response_data
=
{
...
...
@@ -206,8 +206,8 @@ def require_level(level):
if
level
not
in
[
'instructor'
,
'staff'
]:
raise
ValueError
(
"unrecognized level '{}'"
.
format
(
level
))
def
decorator
(
func
):
# pylint: disable=
C0111
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
C0111
def
decorator
(
func
):
# pylint: disable=
missing-docstring
def
wrapped
(
*
args
,
**
kwargs
):
# pylint: disable=
missing-docstring
request
=
args
[
0
]
course
=
get_course_by_id
(
SlashSeparatedCourseKey
.
from_deprecated_string
(
kwargs
[
'course_id'
]))
...
...
lms/djangoapps/mobile_api/users/serializers.py
View file @
e0f1d3f3
...
...
@@ -65,7 +65,7 @@ class CourseEnrollmentSerializer(serializers.ModelSerializer):
"""
course
=
CourseField
()
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
CourseEnrollment
fields
=
(
'created'
,
'mode'
,
'is_active'
,
'course'
)
lookup_field
=
'username'
...
...
@@ -81,7 +81,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
lookup_field
=
'username'
)
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
User
fields
=
(
'id'
,
'username'
,
'email'
,
'name'
,
'course_enrollments'
)
lookup_field
=
'username'
lms/djangoapps/shoppingcart/exceptions.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
Exceptions for the shoppingcart app
"""
# (Exception Class Names are sort of self-explanatory, so skipping docstring requirement)
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
class
PaymentException
(
Exception
):
...
...
lms/djangoapps/survey/admin.py
View file @
e0f1d3f3
...
...
@@ -10,7 +10,7 @@ from survey.models import SurveyForm
class
SurveyFormAdminForm
(
forms
.
ModelForm
):
# pylint: disable=R0924
"""Form providing validation of SurveyForm content."""
class
Meta
:
# pylint: disable=
C0111
class
Meta
:
# pylint: disable=
missing-docstring
model
=
SurveyForm
fields
=
(
'name'
,
'form'
)
...
...
lms/djangoapps/verify_student/exceptions.py
View file @
e0f1d3f3
...
...
@@ -2,7 +2,7 @@
Exceptions for the verify student app
"""
# (Exception Class Names are sort of self-explanatory, so skipping docstring requirement)
# pylint: disable=
C0111
# pylint: disable=
missing-docstring
class
WindowExpiredException
(
Exception
):
...
...
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