Remove Pylint violations deprecated-pragma, bad-option-value

This commit is contained in:
Sarina Canelake
2015-07-10 11:14:38 -04:00
parent ba8fd1c21d
commit b41e70f541
14 changed files with 19 additions and 19 deletions

View File

@@ -55,7 +55,7 @@ class RestrictedCourseForm(forms.ModelForm):
return course_key
class IPFilterForm(forms.ModelForm): # pylint: disable=incomplete-protocol
class IPFilterForm(forms.ModelForm):
"""Form validating entry of IP addresses"""
class Meta: # pylint: disable=missing-docstring

View File

@@ -1043,7 +1043,7 @@ def accounts_login(request):
# Need different levels of logging
@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."""
backend_name = None

View File

@@ -58,7 +58,7 @@ See http://psa.matiasaguirre.net/docs/pipeline.html for more docs.
"""
import random
import string # pylint: disable-msg=deprecated-module
import string # pylint: disable=deprecated-module
from collections import OrderedDict
import urllib
import analytics
@@ -431,7 +431,7 @@ def running(request):
# Pipeline functions.
# Signatures are set by python-social-auth; prepending 'unused_' causes
# 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):

View File

@@ -7,8 +7,8 @@ from third_party_auth.tests import testutil
import unittest
# Allow tests access to protected methods (or module-protected methods) under
# test. pylint: disable-msg=protected-access
# Allow tests access to protected methods (or module-protected methods) under test.
# pylint: disable=protected-access
class MakeRandomPasswordTest(testutil.TestCase):

View File

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

View File

@@ -21,10 +21,10 @@ _SETTINGS_MAP = {
class SettingsUnitTest(testutil.TestCase):
"""Unit tests for settings management code."""
# Allow access to protected methods (or module-protected methods) under
# test. pylint: disable-msg=protected-access
# Allow access to protected methods (or module-protected methods) under test.
# pylint: disable=protected-access
# Suppress sprurious no-member warning on fakes.
# pylint: disable-msg=no-member
# pylint: disable=no-member
def setUp(self):
super(SettingsUnitTest, self).setUp()