From 9aefd6f986ae7a34407837cd8feb405a55dbe69e Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Fri, 5 Mar 2021 08:11:58 -0500 Subject: [PATCH] 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. --- cms/celery.py | 2 +- cms/djangoapps/api/__init__.py | 2 +- cms/djangoapps/contentstore/views/import_export.py | 2 +- common/djangoapps/database_fixups/__init__.py | 2 +- common/djangoapps/edxmako/__init__.py | 2 +- common/djangoapps/entitlements/admin.py | 2 +- common/djangoapps/entitlements/api.py | 2 +- common/djangoapps/entitlements/apps.py | 2 +- .../management/commands/tests/test_expire_old_entitlements.py | 2 +- common/djangoapps/entitlements/models.py | 2 +- .../entitlements/rest_api/v1/tests/test_serializers.py | 2 +- common/djangoapps/entitlements/signals.py | 2 +- common/djangoapps/entitlements/tasks.py | 2 +- common/djangoapps/entitlements/utils.py | 2 +- common/djangoapps/pipeline_mako/__init__.py | 2 +- common/djangoapps/static_replace/__init__.py | 2 +- common/djangoapps/student/__init__.py | 2 +- common/djangoapps/third_party_auth/__init__.py | 2 +- common/lib/capa/setup.py | 2 +- common/lib/conftest.py | 2 +- common/lib/safe_lxml/safe_lxml/__init__.py | 2 +- common/lib/safe_lxml/setup.py | 2 +- common/lib/sandbox-packages/eia.py | 2 +- common/lib/sandbox-packages/loncapa/__init__.py | 2 +- common/lib/symmath/setup.py | 2 +- common/lib/symmath/symmath/__init__.py | 2 +- common/lib/xmodule/setup.py | 2 +- lms/__init__.py | 2 +- lms/celery.py | 2 +- lms/djangoapps/branding/__init__.py | 2 +- lms/djangoapps/course_api/__init__.py | 2 +- lms/djangoapps/course_blocks/__init__.py | 2 +- lms/djangoapps/courseware/__init__.py | 2 +- lms/djangoapps/instructor/views/__init__.py | 2 +- lms/djangoapps/instructor/views/instructor_dashboard.py | 2 +- lms/djangoapps/instructor_task/__init__.py | 2 +- lms/djangoapps/lti_provider/__init__.py | 2 +- lms/djangoapps/teams/__init__.py | 2 +- lms/djangoapps/verify_student/__init__.py | 2 +- lms/docker_lms_gunicorn.py | 2 +- lms/startup.py | 2 +- lms/tests.py | 2 +- lms/urls.py | 2 +- lms/wsgi.py | 2 +- lms/wsgi_apache_lms.py | 2 +- openedx/__init__.py | 2 +- openedx/core/apidocs.py | 2 +- openedx/core/constants.py | 2 +- openedx/core/djangoapps/bookmarks/__init__.py | 2 +- openedx/core/djangoapps/cache_toolbox/__init__.py | 2 +- openedx/core/djangoapps/catalog/__init__.py | 2 +- openedx/core/djangoapps/ccxcon/__init__.py | 2 +- openedx/core/djangoapps/commerce/__init__.py | 2 +- openedx/core/djangoapps/contentserver/__init__.py | 2 +- openedx/core/djangoapps/course_date_signals/__init__.py | 2 +- openedx/core/djangoapps/credentials/__init__.py | 2 +- openedx/core/djangoapps/dark_lang/__init__.py | 2 +- openedx/core/djangoapps/discussions/__init__.py | 2 +- openedx/core/djangoapps/enrollments/__init__.py | 2 +- openedx/core/djangoapps/external_user_ids/__init__.py | 2 +- openedx/core/djangoapps/header_control/__init__.py | 2 +- openedx/core/djangoapps/lang_pref/__init__.py | 2 +- openedx/core/djangoapps/monkey_patch/__init__.py | 2 +- openedx/core/djangoapps/programs/__init__.py | 2 +- openedx/core/djangoapps/schedules/__init__.py | 2 +- openedx/core/djangoapps/schedules/config.py | 2 +- openedx/core/djangoapps/schedules/content_highlights.py | 2 +- openedx/core/djangoapps/schedules/resolvers.py | 2 +- openedx/core/djangoapps/schedules/signals.py | 2 +- openedx/core/djangoapps/schedules/tasks.py | 2 +- openedx/core/djangoapps/schedules/utils.py | 2 +- openedx/core/djangoapps/self_paced/admin.py | 2 +- openedx/core/djangoapps/service_status/__init__.py | 2 +- openedx/core/djangoapps/site_configuration/__init__.py | 2 +- openedx/core/djangoapps/site_configuration/helpers.py | 2 +- openedx/core/djangoapps/video_config/__init__.py | 2 +- openedx/core/djangoapps/waffle_utils/__init__.py | 2 +- openedx/core/djangoapps/xblock/__init__.py | 2 +- openedx/core/djangolib/blockstore_cache.py | 2 +- openedx/core/djangolib/fields.py | 2 +- openedx/core/djangolib/js_utils.py | 2 +- openedx/core/djangolib/markup.py | 2 +- openedx/core/djangolib/model_mixins.py | 2 +- openedx/core/djangolib/oauth2_retirement_utils.py | 2 +- openedx/core/djangolib/testing/tests/test_utils.py | 2 +- openedx/core/djangolib/testing/utils.py | 2 +- openedx/core/djangolib/tests/test_blockstore_cache.py | 2 +- openedx/core/djangolib/tests/test_js_utils.py | 2 +- openedx/core/djangolib/tests/test_markup.py | 2 +- openedx/core/djangolib/tests/test_oauth2_retirement_utils.py | 2 +- openedx/core/djangolib/tests/test_translation_utils.py | 2 +- openedx/core/djangolib/translation_utils.py | 2 +- openedx/core/pytest_hooks.py | 2 +- openedx/core/release.py | 2 +- openedx/core/storage.py | 2 +- openedx/core/tests/test_admin_view.py | 2 +- openedx/core/toggles.py | 2 +- openedx/core/write_to_html.py | 2 +- openedx/features/calendar_sync/__init__.py | 2 +- openedx/features/course_experience/__init__.py | 2 +- openedx/features/discounts/__init__.py | 2 +- 101 files changed, 101 insertions(+), 101 deletions(-) diff --git a/cms/celery.py b/cms/celery.py index 15d1e0beb0..293121bcf2 100644 --- a/cms/celery.py +++ b/cms/celery.py @@ -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. diff --git a/cms/djangoapps/api/__init__.py b/cms/djangoapps/api/__init__.py index fd876356d9..7bf1bde293 100644 --- a/cms/djangoapps/api/__init__.py +++ b/cms/djangoapps/api/__init__.py @@ -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' diff --git a/cms/djangoapps/contentstore/views/import_export.py b/cms/djangoapps/contentstore/views/import_export.py index c2be964cfb..8e5bb99d43 100644 --- a/cms/djangoapps/contentstore/views/import_export.py +++ b/cms/djangoapps/contentstore/views/import_export.py @@ -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 """ diff --git a/common/djangoapps/database_fixups/__init__.py b/common/djangoapps/database_fixups/__init__.py index 0811f62bcf..bea2d2681a 100644 --- a/common/djangoapps/database_fixups/__init__.py +++ b/common/djangoapps/database_fixups/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" This app exists solely to host unusual database migrations. """ diff --git a/common/djangoapps/edxmako/__init__.py b/common/djangoapps/edxmako/__init__.py index e64d8415cf..4becc66631 100644 --- a/common/djangoapps/edxmako/__init__.py +++ b/common/djangoapps/edxmako/__init__.py @@ -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. diff --git a/common/djangoapps/entitlements/admin.py b/common/djangoapps/entitlements/admin.py index f27528a37c..f635900ff2 100644 --- a/common/djangoapps/entitlements/admin.py +++ b/common/djangoapps/entitlements/admin.py @@ -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 diff --git a/common/djangoapps/entitlements/api.py b/common/djangoapps/entitlements/api.py index 2b31d5a3a9..bf55a8e0d5 100644 --- a/common/djangoapps/entitlements/api.py +++ b/common/djangoapps/entitlements/api.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Python APIs exposed by the Entitlements app to other in-process apps. """ diff --git a/common/djangoapps/entitlements/apps.py b/common/djangoapps/entitlements/apps.py index 06155e60e4..40a3d55e94 100644 --- a/common/djangoapps/entitlements/apps.py +++ b/common/djangoapps/entitlements/apps.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Entitlements Application Configuration Signal handlers are connected here. diff --git a/common/djangoapps/entitlements/management/commands/tests/test_expire_old_entitlements.py b/common/djangoapps/entitlements/management/commands/tests/test_expire_old_entitlements.py index c04518905f..fd023ecc59 100644 --- a/common/djangoapps/entitlements/management/commands/tests/test_expire_old_entitlements.py +++ b/common/djangoapps/entitlements/management/commands/tests/test_expire_old_entitlements.py @@ -1,4 +1,4 @@ -"""Test Entitlements models""" # lint-amnesty, pylint: disable=django-not-configured +"""Test Entitlements models""" from unittest import mock diff --git a/common/djangoapps/entitlements/models.py b/common/djangoapps/entitlements/models.py index 851ee611dc..eeb028066a 100644 --- a/common/djangoapps/entitlements/models.py +++ b/common/djangoapps/entitlements/models.py @@ -1,4 +1,4 @@ -"""Entitlement Models""" # lint-amnesty, pylint: disable=django-not-configured +"""Entitlement Models""" import logging diff --git a/common/djangoapps/entitlements/rest_api/v1/tests/test_serializers.py b/common/djangoapps/entitlements/rest_api/v1/tests/test_serializers.py index 61a24a6986..d3ac3e0c3b 100644 --- a/common/djangoapps/entitlements/rest_api/v1/tests/test_serializers.py +++ b/common/djangoapps/entitlements/rest_api/v1/tests/test_serializers.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Tests for the API Serializers. """ diff --git a/common/djangoapps/entitlements/signals.py b/common/djangoapps/entitlements/signals.py index aa0e04cd98..8495e90743 100644 --- a/common/djangoapps/entitlements/signals.py +++ b/common/djangoapps/entitlements/signals.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Entitlements related signal handlers. """ diff --git a/common/djangoapps/entitlements/tasks.py b/common/djangoapps/entitlements/tasks.py index b0b5cd00be..9e9d9b2fb9 100644 --- a/common/djangoapps/entitlements/tasks.py +++ b/common/djangoapps/entitlements/tasks.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" This file contains celery tasks for entitlements-related functionality. """ diff --git a/common/djangoapps/entitlements/utils.py b/common/djangoapps/entitlements/utils.py index 326556dbbf..a356072b58 100644 --- a/common/djangoapps/entitlements/utils.py +++ b/common/djangoapps/entitlements/utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Utility methods for the entitlement application. """ diff --git a/common/djangoapps/pipeline_mako/__init__.py b/common/djangoapps/pipeline_mako/__init__.py index 04d5dd34ea..2138e3da71 100644 --- a/common/djangoapps/pipeline_mako/__init__.py +++ b/common/djangoapps/pipeline_mako/__init__.py @@ -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 diff --git a/common/djangoapps/static_replace/__init__.py b/common/djangoapps/static_replace/__init__.py index 77ae2feb27..55b1de1f89 100644 --- a/common/djangoapps/static_replace/__init__.py +++ b/common/djangoapps/static_replace/__init__.py @@ -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 diff --git a/common/djangoapps/student/__init__.py b/common/djangoapps/student/__init__.py index 03d3ba97a6..ba3af05db5 100644 --- a/common/djangoapps/student/__init__.py +++ b/common/djangoapps/student/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Student app helpers and settings """ diff --git a/common/djangoapps/third_party_auth/__init__.py b/common/djangoapps/third_party_auth/__init__.py index 3535e709f3..dcc2964a8f 100644 --- a/common/djangoapps/third_party_auth/__init__.py +++ b/common/djangoapps/third_party_auth/__init__.py @@ -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 diff --git a/common/lib/capa/setup.py b/common/lib/capa/setup.py index 4ec7866f31..d2ea877cb9 100644 --- a/common/lib/capa/setup.py +++ b/common/lib/capa/setup.py @@ -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 diff --git a/common/lib/conftest.py b/common/lib/conftest.py index daab9ba264..9fd136d28f 100644 --- a/common/lib/conftest.py +++ b/common/lib/conftest.py @@ -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. diff --git a/common/lib/safe_lxml/safe_lxml/__init__.py b/common/lib/safe_lxml/safe_lxml/__init__.py index 0623f11670..b17efb15cc 100644 --- a/common/lib/safe_lxml/safe_lxml/__init__.py +++ b/common/lib/safe_lxml/safe_lxml/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Defuse vulnerabilities in XML packages. """ diff --git a/common/lib/safe_lxml/setup.py b/common/lib/safe_lxml/setup.py index 95e67f2cc4..9a4a54c8d4 100644 --- a/common/lib/safe_lxml/setup.py +++ b/common/lib/safe_lxml/setup.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Setup.py for safe_lxml. """ diff --git a/common/lib/sandbox-packages/eia.py b/common/lib/sandbox-packages/eia.py index a10b631502..f8c2da59f1 100644 --- a/common/lib/sandbox-packages/eia.py +++ b/common/lib/sandbox-packages/eia.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Standard resistor values. Commonly used for verifying electronic components in circuit classes are diff --git a/common/lib/sandbox-packages/loncapa/__init__.py b/common/lib/sandbox-packages/loncapa/__init__.py index f25098235e..3d613e04de 100644 --- a/common/lib/sandbox-packages/loncapa/__init__.py +++ b/common/lib/sandbox-packages/loncapa/__init__.py @@ -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 diff --git a/common/lib/symmath/setup.py b/common/lib/symmath/setup.py index 0ea41b5056..01e91bd133 100644 --- a/common/lib/symmath/setup.py +++ b/common/lib/symmath/setup.py @@ -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( diff --git a/common/lib/symmath/symmath/__init__.py b/common/lib/symmath/symmath/__init__.py index f492a56f65..8d00aadd22 100644 --- a/common/lib/symmath/symmath/__init__.py +++ b/common/lib/symmath/symmath/__init__.py @@ -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 * diff --git a/common/lib/xmodule/setup.py b/common/lib/xmodule/setup.py index 852ea8463b..095fa5a3cc 100644 --- a/common/lib/xmodule/setup.py +++ b/common/lib/xmodule/setup.py @@ -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 diff --git a/lms/__init__.py b/lms/__init__.py index b2e36bfc94..008640ac71 100644 --- a/lms/__init__.py +++ b/lms/__init__.py @@ -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. """ diff --git a/lms/celery.py b/lms/celery.py index 2e7235f8d5..808df030ef 100644 --- a/lms/celery.py +++ b/lms/celery.py @@ -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. diff --git a/lms/djangoapps/branding/__init__.py b/lms/djangoapps/branding/__init__.py index 55690aed17..b7ce3e1df5 100644 --- a/lms/djangoapps/branding/__init__.py +++ b/lms/djangoapps/branding/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" EdX Branding package. Provides a way to retrieve "branded" parts of the site. diff --git a/lms/djangoapps/course_api/__init__.py b/lms/djangoapps/course_api/__init__.py index b12d80613d..f74c37503c 100644 --- a/lms/djangoapps/course_api/__init__.py +++ b/lms/djangoapps/course_api/__init__.py @@ -1,4 +1,4 @@ -""" Course API """ # lint-amnesty, pylint: disable=django-not-configured +""" Course API """ from edx_toggles.toggles import LegacyWaffleSwitch, LegacyWaffleSwitchNamespace diff --git a/lms/djangoapps/course_blocks/__init__.py b/lms/djangoapps/course_blocks/__init__.py index f2239adfcd..891764f2d8 100644 --- a/lms/djangoapps/course_blocks/__init__.py +++ b/lms/djangoapps/course_blocks/__init__.py @@ -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 diff --git a/lms/djangoapps/courseware/__init__.py b/lms/djangoapps/courseware/__init__.py index c91211b534..e5bb5e020c 100644 --- a/lms/djangoapps/courseware/__init__.py +++ b/lms/djangoapps/courseware/__init__.py @@ -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': diff --git a/lms/djangoapps/instructor/views/__init__.py b/lms/djangoapps/instructor/views/__init__.py index 83d462cd07..2b14fd387e 100644 --- a/lms/djangoapps/instructor/views/__init__.py +++ b/lms/djangoapps/instructor/views/__init__.py @@ -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' diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 3401724aa3..ffa49e3721 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Instructor Dashboard Views """ diff --git a/lms/djangoapps/instructor_task/__init__.py b/lms/djangoapps/instructor_task/__init__.py index 86f8aed7af..476eeca191 100644 --- a/lms/djangoapps/instructor_task/__init__.py +++ b/lms/djangoapps/instructor_task/__init__.py @@ -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' diff --git a/lms/djangoapps/lti_provider/__init__.py b/lms/djangoapps/lti_provider/__init__.py index 14d9b6518a..ccf384160d 100644 --- a/lms/djangoapps/lti_provider/__init__.py +++ b/lms/djangoapps/lti_provider/__init__.py @@ -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: diff --git a/lms/djangoapps/teams/__init__.py b/lms/djangoapps/teams/__init__.py index 4259abf7f6..f2600b66db 100644 --- a/lms/djangoapps/teams/__init__.py +++ b/lms/djangoapps/teams/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Defines common methods shared by Teams classes """ diff --git a/lms/djangoapps/verify_student/__init__.py b/lms/djangoapps/verify_student/__init__.py index f099a835f8..cf9ef2ad15 100644 --- a/lms/djangoapps/verify_student/__init__.py +++ b/lms/djangoapps/verify_student/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Student Identity Verification App """ diff --git a/lms/docker_lms_gunicorn.py b/lms/docker_lms_gunicorn.py index 9b79a792a1..163e13be33 100644 --- a/lms/docker_lms_gunicorn.py +++ b/lms/docker_lms_gunicorn.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" gunicorn configuration file: http://docs.gunicorn.org/en/stable/configure.html """ diff --git a/lms/startup.py b/lms/startup.py index e430d4cbc6..ed1ad1caba 100644 --- a/lms/startup.py +++ b/lms/startup.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Module for code that should run during LMS startup (deprecated) """ diff --git a/lms/tests.py b/lms/tests.py index 7785abe0ba..8a44795826 100644 --- a/lms/tests.py +++ b/lms/tests.py @@ -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 diff --git a/lms/urls.py b/lms/urls.py index 5e9f0a523b..cfcdf14a9b 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" URLs for LMS """ diff --git a/lms/wsgi.py b/lms/wsgi.py index 5fc9188f63..4a8cb67049 100644 --- a/lms/wsgi.py +++ b/lms/wsgi.py @@ -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 diff --git a/lms/wsgi_apache_lms.py b/lms/wsgi_apache_lms.py index 00eaac9bb0..194dbb8878 100644 --- a/lms/wsgi_apache_lms.py +++ b/lms/wsgi_apache_lms.py @@ -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. diff --git a/openedx/__init__.py b/openedx/__init__.py index e971697c39..f3d7c7b8a8 100644 --- a/openedx/__init__.py +++ b/openedx/__init__.py @@ -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. diff --git a/openedx/core/apidocs.py b/openedx/core/apidocs.py index 86a3847c95..3651a2162c 100644 --- a/openedx/core/apidocs.py +++ b/openedx/core/apidocs.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Open API support. """ diff --git a/openedx/core/constants.py b/openedx/core/constants.py index a82065679e..ad16e9e595 100644 --- a/openedx/core/constants.py +++ b/openedx/core/constants.py @@ -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. diff --git a/openedx/core/djangoapps/bookmarks/__init__.py b/openedx/core/djangoapps/bookmarks/__init__.py index 6901948021..32c18231af 100644 --- a/openedx/core/djangoapps/bookmarks/__init__.py +++ b/openedx/core/djangoapps/bookmarks/__init__.py @@ -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. """ diff --git a/openedx/core/djangoapps/cache_toolbox/__init__.py b/openedx/core/djangoapps/cache_toolbox/__init__.py index 827e61813c..f41654ad43 100644 --- a/openedx/core/djangoapps/cache_toolbox/__init__.py +++ b/openedx/core/djangoapps/cache_toolbox/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" :mod:`cache_toolbox` --- Non-magical object caching tools for Django ==================================================================== diff --git a/openedx/core/djangoapps/catalog/__init__.py b/openedx/core/djangoapps/catalog/__init__.py index f9df367bee..18e5699c64 100644 --- a/openedx/core/djangoapps/catalog/__init__.py +++ b/openedx/core/djangoapps/catalog/__init__.py @@ -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' diff --git a/openedx/core/djangoapps/ccxcon/__init__.py b/openedx/core/djangoapps/ccxcon/__init__.py index 04d742a939..98a839e469 100644 --- a/openedx/core/djangoapps/ccxcon/__init__.py +++ b/openedx/core/djangoapps/ccxcon/__init__.py @@ -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. diff --git a/openedx/core/djangoapps/commerce/__init__.py b/openedx/core/djangoapps/commerce/__init__.py index 977fb12ffc..9b06dc24a3 100644 --- a/openedx/core/djangoapps/commerce/__init__.py +++ b/openedx/core/djangoapps/commerce/__init__.py @@ -1 +1 @@ -""" Thin Client for the Ecommerce API Service """ # lint-amnesty, pylint: disable=django-not-configured +""" Thin Client for the Ecommerce API Service """ diff --git a/openedx/core/djangoapps/contentserver/__init__.py b/openedx/core/djangoapps/contentserver/__init__.py index 6433e6479f..63136758e8 100644 --- a/openedx/core/djangoapps/contentserver/__init__.py +++ b/openedx/core/djangoapps/contentserver/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Serves course assets to end users. """ diff --git a/openedx/core/djangoapps/course_date_signals/__init__.py b/openedx/core/djangoapps/course_date_signals/__init__.py index 9a235b3997..4d9e1da841 100644 --- a/openedx/core/djangoapps/course_date_signals/__init__.py +++ b/openedx/core/djangoapps/course_date_signals/__init__.py @@ -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. """ diff --git a/openedx/core/djangoapps/credentials/__init__.py b/openedx/core/djangoapps/credentials/__init__.py index ba7b15e2e3..b7c6418ae6 100644 --- a/openedx/core/djangoapps/credentials/__init__.py +++ b/openedx/core/djangoapps/credentials/__init__.py @@ -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 diff --git a/openedx/core/djangoapps/dark_lang/__init__.py b/openedx/core/djangoapps/dark_lang/__init__.py index 4593e2dba6..c516bcb0e4 100644 --- a/openedx/core/djangoapps/dark_lang/__init__.py +++ b/openedx/core/djangoapps/dark_lang/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Language Translation Dark Launching =================================== diff --git a/openedx/core/djangoapps/discussions/__init__.py b/openedx/core/djangoapps/discussions/__init__.py index 399a00d8f4..7aac22d8e4 100644 --- a/openedx/core/djangoapps/discussions/__init__.py +++ b/openedx/core/djangoapps/discussions/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Handle discussions integrations """ default_app_config = 'openedx.core.djangoapps.discussions.apps.DiscussionsConfig' diff --git a/openedx/core/djangoapps/enrollments/__init__.py b/openedx/core/djangoapps/enrollments/__init__.py index d86bd82241..963bb1d78f 100644 --- a/openedx/core/djangoapps/enrollments/__init__.py +++ b/openedx/core/djangoapps/enrollments/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Enrollment API helpers and settings """ diff --git a/openedx/core/djangoapps/external_user_ids/__init__.py b/openedx/core/djangoapps/external_user_ids/__init__.py index 61de1257bf..dbf6fe4b2d 100644 --- a/openedx/core/djangoapps/external_user_ids/__init__.py +++ b/openedx/core/djangoapps/external_user_ids/__init__.py @@ -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 diff --git a/openedx/core/djangoapps/header_control/__init__.py b/openedx/core/djangoapps/header_control/__init__.py index 5f07de15d6..ad2208736d 100644 --- a/openedx/core/djangoapps/header_control/__init__.py +++ b/openedx/core/djangoapps/header_control/__init__.py @@ -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, diff --git a/openedx/core/djangoapps/lang_pref/__init__.py b/openedx/core/djangoapps/lang_pref/__init__.py index 59885acf62..a72ca0bb3b 100644 --- a/openedx/core/djangoapps/lang_pref/__init__.py +++ b/openedx/core/djangoapps/lang_pref/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Useful information for setting the language preference """ diff --git a/openedx/core/djangoapps/monkey_patch/__init__.py b/openedx/core/djangoapps/monkey_patch/__init__.py index 8e7911a8b1..ed4b9fc261 100644 --- a/openedx/core/djangoapps/monkey_patch/__init__.py +++ b/openedx/core/djangoapps/monkey_patch/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Monkey-patch the edX platform Here be dragons (and simians!) diff --git a/openedx/core/djangoapps/programs/__init__.py b/openedx/core/djangoapps/programs/__init__.py index 3da3ae7881..59c89ace57 100644 --- a/openedx/core/djangoapps/programs/__init__.py +++ b/openedx/core/djangoapps/programs/__init__.py @@ -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, diff --git a/openedx/core/djangoapps/schedules/__init__.py b/openedx/core/djangoapps/schedules/__init__.py index 989b2b2e16..040a9e85ed 100644 --- a/openedx/core/djangoapps/schedules/__init__.py +++ b/openedx/core/djangoapps/schedules/__init__.py @@ -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' diff --git a/openedx/core/djangoapps/schedules/config.py b/openedx/core/djangoapps/schedules/config.py index 8011b96855..aff784be54 100644 --- a/openedx/core/djangoapps/schedules/config.py +++ b/openedx/core/djangoapps/schedules/config.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Contains configuration for schedules app """ diff --git a/openedx/core/djangoapps/schedules/content_highlights.py b/openedx/core/djangoapps/schedules/content_highlights.py index 0734972497..6e078fc481 100644 --- a/openedx/core/djangoapps/schedules/content_highlights.py +++ b/openedx/core/djangoapps/schedules/content_highlights.py @@ -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. """ diff --git a/openedx/core/djangoapps/schedules/resolvers.py b/openedx/core/djangoapps/schedules/resolvers.py index 541734ce5d..492a67f30d 100644 --- a/openedx/core/djangoapps/schedules/resolvers.py +++ b/openedx/core/djangoapps/schedules/resolvers.py @@ -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 diff --git a/openedx/core/djangoapps/schedules/signals.py b/openedx/core/djangoapps/schedules/signals.py index f84a6f5566..5161cda040 100644 --- a/openedx/core/djangoapps/schedules/signals.py +++ b/openedx/core/djangoapps/schedules/signals.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" CourseEnrollment related signal handlers. """ diff --git a/openedx/core/djangoapps/schedules/tasks.py b/openedx/core/djangoapps/schedules/tasks.py index 721b5654c9..a885bece7b 100644 --- a/openedx/core/djangoapps/schedules/tasks.py +++ b/openedx/core/djangoapps/schedules/tasks.py @@ -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 diff --git a/openedx/core/djangoapps/schedules/utils.py b/openedx/core/djangoapps/schedules/utils.py index 007da1eae9..de4f8bad67 100644 --- a/openedx/core/djangoapps/schedules/utils.py +++ b/openedx/core/djangoapps/schedules/utils.py @@ -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 diff --git a/openedx/core/djangoapps/self_paced/admin.py b/openedx/core/djangoapps/self_paced/admin.py index 28c0d68ad8..df3ff01b25 100644 --- a/openedx/core/djangoapps/self_paced/admin.py +++ b/openedx/core/djangoapps/self_paced/admin.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Admin site bindings for self-paced courses. """ diff --git a/openedx/core/djangoapps/service_status/__init__.py b/openedx/core/djangoapps/service_status/__init__.py index 72eb0e976e..e90be0088e 100644 --- a/openedx/core/djangoapps/service_status/__init__.py +++ b/openedx/core/djangoapps/service_status/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Stub for a Django app to report the status of various services """ diff --git a/openedx/core/djangoapps/site_configuration/__init__.py b/openedx/core/djangoapps/site_configuration/__init__.py index 73853402dc..f470c9b9eb 100644 --- a/openedx/core/djangoapps/site_configuration/__init__.py +++ b/openedx/core/djangoapps/site_configuration/__init__.py @@ -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. diff --git a/openedx/core/djangoapps/site_configuration/helpers.py b/openedx/core/djangoapps/site_configuration/helpers.py index a4bf26660f..a910c4fb71 100644 --- a/openedx/core/djangoapps/site_configuration/helpers.py +++ b/openedx/core/djangoapps/site_configuration/helpers.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Helpers methods for site configuration. """ diff --git a/openedx/core/djangoapps/video_config/__init__.py b/openedx/core/djangoapps/video_config/__init__.py index ae448c0a86..c1188dde9b 100644 --- a/openedx/core/djangoapps/video_config/__init__.py +++ b/openedx/core/djangoapps/video_config/__init__.py @@ -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. diff --git a/openedx/core/djangoapps/waffle_utils/__init__.py b/openedx/core/djangoapps/waffle_utils/__init__.py index 260f8777ae..235d14a739 100644 --- a/openedx/core/djangoapps/waffle_utils/__init__.py +++ b/openedx/core/djangoapps/waffle_utils/__init__.py @@ -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. """ diff --git a/openedx/core/djangoapps/xblock/__init__.py b/openedx/core/djangoapps/xblock/__init__.py index 07b2f57678..7b16445048 100644 --- a/openedx/core/djangoapps/xblock/__init__.py +++ b/openedx/core/djangoapps/xblock/__init__.py @@ -1,3 +1,3 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" The new XBlock runtime and related code. """ diff --git a/openedx/core/djangolib/blockstore_cache.py b/openedx/core/djangolib/blockstore_cache.py index 9ca81f47dc..df1e3fdf32 100644 --- a/openedx/core/djangolib/blockstore_cache.py +++ b/openedx/core/djangolib/blockstore_cache.py @@ -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 diff --git a/openedx/core/djangolib/fields.py b/openedx/core/djangolib/fields.py index 8319750253..dc5318bb74 100644 --- a/openedx/core/djangolib/fields.py +++ b/openedx/core/djangolib/fields.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Custom Django fields. """ diff --git a/openedx/core/djangolib/js_utils.py b/openedx/core/djangolib/js_utils.py index 12fadab5ca..79b8070825 100644 --- a/openedx/core/djangolib/js_utils.py +++ b/openedx/core/djangolib/js_utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Utilities for dealing with Javascript and JSON. """ diff --git a/openedx/core/djangolib/markup.py b/openedx/core/djangolib/markup.py index 8b02b1dcee..c214728d89 100644 --- a/openedx/core/djangolib/markup.py +++ b/openedx/core/djangolib/markup.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Utilities for use in Mako markup. """ diff --git a/openedx/core/djangolib/model_mixins.py b/openedx/core/djangolib/model_mixins.py index 1b0e1f5c32..266f1e99d6 100644 --- a/openedx/core/djangolib/model_mixins.py +++ b/openedx/core/djangolib/model_mixins.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Custom Django Model mixins. """ diff --git a/openedx/core/djangolib/oauth2_retirement_utils.py b/openedx/core/djangolib/oauth2_retirement_utils.py index c31c491e18..7b0c541e25 100644 --- a/openedx/core/djangolib/oauth2_retirement_utils.py +++ b/openedx/core/djangolib/oauth2_retirement_utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Removes user PII from OAuth2 models. """ diff --git a/openedx/core/djangolib/testing/tests/test_utils.py b/openedx/core/djangolib/testing/tests/test_utils.py index 8793388e27..b81b25a781 100644 --- a/openedx/core/djangolib/testing/tests/test_utils.py +++ b/openedx/core/djangolib/testing/tests/test_utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Test that testing utils do what they say. """ diff --git a/openedx/core/djangolib/testing/utils.py b/openedx/core/djangolib/testing/utils.py index ff1217fb7e..c3c5b9db08 100644 --- a/openedx/core/djangolib/testing/utils.py +++ b/openedx/core/djangolib/testing/utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Utility classes for testing django applications. :py:class:`CacheIsolationMixin` diff --git a/openedx/core/djangolib/tests/test_blockstore_cache.py b/openedx/core/djangolib/tests/test_blockstore_cache.py index 0e5b3f898c..56b970289f 100644 --- a/openedx/core/djangolib/tests/test_blockstore_cache.py +++ b/openedx/core/djangolib/tests/test_blockstore_cache.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured +# -*- coding: utf-8 -*- """ Tests for BundleCache """ diff --git a/openedx/core/djangolib/tests/test_js_utils.py b/openedx/core/djangolib/tests/test_js_utils.py index 822cefd408..f9fc8e9950 100644 --- a/openedx/core/djangolib/tests/test_js_utils.py +++ b/openedx/core/djangolib/tests/test_js_utils.py @@ -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 diff --git a/openedx/core/djangolib/tests/test_markup.py b/openedx/core/djangolib/tests/test_markup.py index bc3062ba3e..a4b4efb512 100644 --- a/openedx/core/djangolib/tests/test_markup.py +++ b/openedx/core/djangolib/tests/test_markup.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured +# -*- coding: utf-8 -*- """ Tests for openedx.core.djangolib.markup """ diff --git a/openedx/core/djangolib/tests/test_oauth2_retirement_utils.py b/openedx/core/djangolib/tests/test_oauth2_retirement_utils.py index 05670ba489..e5465aa1d1 100644 --- a/openedx/core/djangolib/tests/test_oauth2_retirement_utils.py +++ b/openedx/core/djangolib/tests/test_oauth2_retirement_utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Contains tests for OAuth2 model-retirement methods. """ diff --git a/openedx/core/djangolib/tests/test_translation_utils.py b/openedx/core/djangolib/tests/test_translation_utils.py index c700c0470a..0d9d4fb1be 100644 --- a/openedx/core/djangolib/tests/test_translation_utils.py +++ b/openedx/core/djangolib/tests/test_translation_utils.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- # lint-amnesty, pylint: disable=django-not-configured +# -*- coding: utf-8 -*- """ Tests for openedx.core.djangolib.translation_utils """ diff --git a/openedx/core/djangolib/translation_utils.py b/openedx/core/djangolib/translation_utils.py index a8346495d4..f9749e37c2 100644 --- a/openedx/core/djangolib/translation_utils.py +++ b/openedx/core/djangolib/translation_utils.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" i18n utility functions """ diff --git a/openedx/core/pytest_hooks.py b/openedx/core/pytest_hooks.py index b34ebcbf07..211680d362 100644 --- a/openedx/core/pytest_hooks.py +++ b/openedx/core/pytest_hooks.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Module to put all pytest hooks that modify pytest behaviour """ import os diff --git a/openedx/core/release.py b/openedx/core/release.py index 0bd53fac59..6aa63d17d0 100644 --- a/openedx/core/release.py +++ b/openedx/core/release.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Information about the release line of this Open edX code. """ diff --git a/openedx/core/storage.py b/openedx/core/storage.py index 338c55829c..a016915c31 100644 --- a/openedx/core/storage.py +++ b/openedx/core/storage.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Django storage backends for Open edX. """ diff --git a/openedx/core/tests/test_admin_view.py b/openedx/core/tests/test_admin_view.py index 4779021b49..d6275b464e 100644 --- a/openedx/core/tests/test_admin_view.py +++ b/openedx/core/tests/test_admin_view.py @@ -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. diff --git a/openedx/core/toggles.py b/openedx/core/toggles.py index 32634e6f03..c47d25e9dc 100644 --- a/openedx/core/toggles.py +++ b/openedx/core/toggles.py @@ -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. """ diff --git a/openedx/core/write_to_html.py b/openedx/core/write_to_html.py index d62b0e36a2..108ea179a9 100644 --- a/openedx/core/write_to_html.py +++ b/openedx/core/write_to_html.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Class used to write pytest warning data into html format """ import textwrap diff --git a/openedx/features/calendar_sync/__init__.py b/openedx/features/calendar_sync/__init__.py index 1189b06cec..47f76c832d 100644 --- a/openedx/features/calendar_sync/__init__.py +++ b/openedx/features/calendar_sync/__init__.py @@ -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' diff --git a/openedx/features/course_experience/__init__.py b/openedx/features/course_experience/__init__.py index 01f6b53bd0..3f720cb503 100644 --- a/openedx/features/course_experience/__init__.py +++ b/openedx/features/course_experience/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Unified course experience settings and helper methods. """ import crum diff --git a/openedx/features/discounts/__init__.py b/openedx/features/discounts/__init__.py index 37dba338c7..2b2e8e7df6 100644 --- a/openedx/features/discounts/__init__.py +++ b/openedx/features/discounts/__init__.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" Discounts are determined by a combination of user and course, and have a one to one relationship with the enrollment (if already enrolled) or a join table of user and course. They are determined in LMS, because all of the data for the business rules exists here. Discount rules are meant to be permanent.