style: django-not-configured is not a sensible lint-amnesty value (#26862)

django-not-configured is an error raised by pylint (with
the pylint-django plugin) when it's not correctly configured.

We should not be applying lint amnesty for such a violation.
This commit is contained in:
Kyle McCormick
2021-03-05 08:11:58 -05:00
committed by GitHub
parent 8155190511
commit 9aefd6f986
101 changed files with 101 additions and 101 deletions

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Import celery, load its settings from the django settings
and auto discover tasks in all installed django apps.

View File

@@ -1,2 +1,2 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'cms.djangoapps.api.apps.ApiConfig'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
These views handle all actions in Studio related to import and exporting of
courses
"""

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This app exists solely to host unusual database migrations.
"""

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2008 Mikeal Rogers # lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# Copyright (c) 2008 Mikeal Rogers # lint-amnesty, pylint: disable=missing-module-docstring
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.

View File

@@ -1,4 +1,4 @@
"""Admin forms for Course Entitlements""" # lint-amnesty, pylint: disable=django-not-configured
"""Admin forms for Course Entitlements"""
from django import forms

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Python APIs exposed by the Entitlements app to other in-process apps.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Entitlements Application Configuration
Signal handlers are connected here.

View File

@@ -1,4 +1,4 @@
"""Test Entitlements models""" # lint-amnesty, pylint: disable=django-not-configured
"""Test Entitlements models"""
from unittest import mock

View File

@@ -1,4 +1,4 @@
"""Entitlement Models""" # lint-amnesty, pylint: disable=django-not-configured
"""Entitlement Models"""
import logging

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Tests for the API Serializers.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Entitlements related signal handlers.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This file contains celery tasks for entitlements-related functionality.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Utility methods for the entitlement application.
"""

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
from django.conf import settings as django_settings
from django.contrib.staticfiles.storage import staticfiles_storage

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
import logging
import re

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Student app helpers and settings
"""

View File

@@ -1,4 +1,4 @@
"""Third party authentication. """ # lint-amnesty, pylint: disable=django-not-configured
"""Third party authentication. """
from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
from setuptools import find_packages, setup

View File

@@ -1,4 +1,4 @@
"""Code run by pylint before running any tests.""" # lint-amnesty, pylint: disable=django-not-configured
"""Code run by pylint before running any tests."""
# Patch the xml libs before anything else.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Defuse vulnerabilities in XML packages.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Setup.py for safe_lxml.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Standard resistor values.
Commonly used for verifying electronic components in circuit classes are

View File

@@ -1,3 +1,3 @@
#!/usr/bin/python # lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
#!/usr/bin/python # lint-amnesty, pylint: disable=missing-module-docstring
from .loncapa_check import * # lint-amnesty, pylint: disable=redefined-builtin

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
from setuptools import setup
setup(

View File

@@ -1,3 +1,3 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
from .formula import *
from .symmath_check import *

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
from setuptools import find_packages, setup

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Celery needs to be loaded when the cms modules are so that task
registration and discovery can work correctly.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Import celery, load its settings from the django settings
and auto discover tasks in all installed django apps.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
EdX Branding package.
Provides a way to retrieve "branded" parts of the site.

View File

@@ -1,4 +1,4 @@
""" Course API """ # lint-amnesty, pylint: disable=django-not-configured
""" Course API """
from edx_toggles.toggles import LegacyWaffleSwitch, LegacyWaffleSwitchNamespace

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
The Course Blocks app, built upon the Block Cache framework in
openedx.core.djangoapps.content.block_structure, is a higher layer django app in LMS that
provides additional context of Courses and Users (via usage_info.py) with

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
import warnings
if __name__ == 'courseware':

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This is the UserPreference key for the user's recipient invoice copy
"""
INVOICE_KEY = 'pref-invoice-copy'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Instructor Dashboard Views
"""

View File

@@ -1,2 +1,2 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'lms.djangoapps.instructor_task.apps.InstructorTaskConfig'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
The LTI Provider app gives a way to launch edX content via a campus LMS
platform. LTI is a standard protocol for connecting educational tools, defined
by IMS:

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Defines common methods shared by Teams classes
"""

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Student Identity Verification App
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
gunicorn configuration file: http://docs.gunicorn.org/en/stable/configure.html
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Module for code that should run during LMS startup (deprecated)
"""

View File

@@ -1,4 +1,4 @@
"""Tests for the lms module itself.""" # lint-amnesty, pylint: disable=django-not-configured
"""Tests for the lms module itself."""
import logging

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
URLs for LMS
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
WSGI config for LMS.
This module contains the WSGI application used by Django's development server

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Apache WSGI file for LMS
This module contains the WSGI application used for Apache deployment.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This is the root package for Open edX. The intent is that all importable code
from Open edX will eventually live here, including the code in the lms, cms,
and common directories.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Open API support.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Constants that are relevant to all of Open edX
"""
# These are standard regexes for pulling out info like course_ids, usage_ids, etc.

View File

@@ -1,6 +1,6 @@
"""
# lint-amnesty, pylint: disable=django-not-configured
# lint-amnesty, pylint: disable=django-not-configured # lint-amnesty, pylint: disable=django-not-configured
# lint-amnesty, pylint: disable=django-not-configured
Bookmarks module.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
:mod:`cache_toolbox` --- Non-magical object caching tools for Django
====================================================================

View File

@@ -1,2 +1,2 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'openedx.core.djangoapps.catalog.apps.CatalogConfig'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
The ccxcon app contains the models and the APIs to interact
with the `CCX Connector`, an application external to openedx
that is used to interact with the CCX and their master courses.

View File

@@ -1 +1 @@
""" Thin Client for the Ecommerce API Service """ # lint-amnesty, pylint: disable=django-not-configured
""" Thin Client for the Ecommerce API Service """

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Serves course assets to end users.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Django app to manage course content dates, and ingesting them into edx-when for later use by the LMS.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
edX Platform support for credentials.
This package will be used as a wrapper for interacting with the credentials

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Language Translation Dark Launching
===================================

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Handle discussions integrations
"""
default_app_config = 'openedx.core.djangoapps.discussions.apps.DiscussionsConfig'

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Enrollment API helpers and settings
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
edX Platform support for external user IDs.
This package will be used to support generating external User IDs to be shared

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This middleware is used for adjusting the headers in a response before it is sent to the end user.
This middleware is intended to sit as close as possible to the top of the middleare list as possible,

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Useful information for setting the language preference
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Monkey-patch the edX platform
Here be dragons (and simians!)

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Platform support for Programs.
This package is a thin wrapper around interactions with the Programs service,

View File

@@ -1,2 +1,2 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
default_app_config = 'openedx.core.djangoapps.schedules.apps.SchedulesConfig'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Contains configuration for schedules app
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Contains methods for accessing course highlights. Course highlights is a
schedule experience built on the Schedules app.
"""

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
import datetime
import logging

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
CourseEnrollment related signal handlers.
"""

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
import datetime
import logging

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=django-not-configured, missing-module-docstring
# lint-amnesty, pylint: disable=missing-module-docstring
import datetime
import logging

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Admin site bindings for self-paced courses.
"""

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Stub for a Django app to report the status of various services
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
This app is used for creating/updating site's configuration. This app encapsulate configuration related logic for sites
and provides a way for sites to override default/system behavioural or presentation logic.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Helpers methods for site configuration.
"""

View File

@@ -1 +1 @@
# TODO Move this Application to video codebase when Video XModule becomes an XBlock. Reference: TNL-6867. # lint-amnesty, pylint: disable=django-not-configured
# TODO Move this Application to video codebase when Video XModule becomes an XBlock. Reference: TNL-6867.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Extra utilities for waffle: most classes are defined in edx_toggles.toggles (https://edx-toggles.readthedocs.io/), but
we keep here some extra classes for usage within edx-platform. These classes cover course override use cases.
"""

View File

@@ -1,3 +1,3 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
The new XBlock runtime and related code.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
An API for caching data related to Blockstore bundles
The whole point of this is to make the hard problem of cache invalidation

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Custom Django fields.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Utilities for dealing with Javascript and JSON.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Utilities for use in Mako markup.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Custom Django Model mixins.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Removes user PII from OAuth2 models.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Test that testing utils do what they say.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Utility classes for testing django applications.
:py:class:`CacheIsolationMixin`

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured
# -*- coding: utf-8 -*-
"""
Tests for BundleCache
"""

View File

@@ -1,4 +1,4 @@
# lint-amnesty, pylint: disable=bad-option-value, unicode-format-string # lint-amnesty, pylint: disable=django-not-configured
# lint-amnesty, pylint: disable=bad-option-value, unicode-format-string
# -*- coding: utf-8 -*-
"""
Tests for js_utils.py

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured
# -*- coding: utf-8 -*-
"""
Tests for openedx.core.djangolib.markup
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Contains tests for OAuth2 model-retirement methods.
"""

View File

@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured
# -*- coding: utf-8 -*-
"""
Tests for openedx.core.djangolib.translation_utils
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
i18n utility functions
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Module to put all pytest hooks that modify pytest behaviour
"""
import os

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Information about the release line of this Open edX code.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Django storage backends for Open edX.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Tests that verify that the admin view loads.
This is not inside a django app because it is a global property of the system.

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Feature toggles used across the platform. Toggles should only be added to this module if we don't have a better place
for them. Generally speaking, they should be added to the most appropriate app or repo.
"""

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Class used to write pytest warning data into html format
"""
import textwrap

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Calendar syncing Course dates with a User.
"""
default_app_config = 'openedx.features.calendar_sync.apps.UserCalendarSyncConfig'

View File

@@ -1,4 +1,4 @@
""" # lint-amnesty, pylint: disable=django-not-configured
"""
Unified course experience settings and helper methods.
"""
import crum

Some files were not shown because too many files have changed in this diff Show More