s/pylint: disable=C0111/pylint: disable=missing-docstring/

This commit is contained in:
Sarina Canelake
2014-11-29 23:01:00 -05:00
parent 0dad9da5e4
commit e0f1d3f3f3
69 changed files with 81 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
import os

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# Lettuce formats proposed definitions for unimplemented steps with the

View File

@@ -1,5 +1,5 @@
# 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

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,5 +1,5 @@
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613

View File

@@ -1,5 +1,5 @@
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
from collections import OrderedDict

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=W0613

View File

@@ -1,5 +1,5 @@
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
import json
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,5 +1,5 @@
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
import os
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
import requests
from lettuce import world, step

View File

@@ -1,6 +1,6 @@
# -*- 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

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111,W0613
# pylint: disable=missing-docstring,W0613
from django.http import (HttpResponse, HttpResponseServerError,
HttpResponseNotFound)

View File

@@ -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'

View File

@@ -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):

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
import urllib

View File

@@ -1,4 +1,4 @@
# 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

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world

View File

@@ -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

View File

@@ -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):

View File

@@ -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

View File

@@ -1,5 +1,5 @@
# disable missing docstring
# pylint: disable=C0111
# pylint: disable=missing-docstring
import unittest

View File

@@ -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

View File

@@ -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):

View File

@@ -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')

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from __future__ import absolute_import

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, steps

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# pylint: disable=unused-argument

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
from lettuce import step
from lettuce import world

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import step, world

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
import datetime
import os
import pytz

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -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

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# EVERY PROBLEM TYPE MUST HAVE THE FOLLOWING:

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
from lettuce import world, step

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# pylint: disable=C0111
# pylint: disable=missing-docstring
from lettuce import world, step, before, after
import json

View File

@@ -1,4 +1,4 @@
# pylint: disable=C0111
# pylint: disable=missing-docstring
from time import sleep

View File

@@ -1,5 +1,5 @@
# 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

View File

@@ -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

View File

@@ -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)

View File

@@ -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):

View File

@@ -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)

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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)

View File

@@ -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']))

View File

@@ -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'

View File

@@ -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):

View File

@@ -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')

View File

@@ -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):