From 9aefd6f986ae7a34407837cd8feb405a55dbe69e Mon Sep 17 00:00:00 2001 From: Kyle McCormick <kmccormick@edx.org> 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 15d1e0beb0e..293121bcf22 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 fd876356d97..7bf1bde2931 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 c2be964cfba..8e5bb99d43c 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 0811f62bcf8..bea2d2681ac 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 e64d8415cfe..4becc66631a 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 f27528a37cc..f635900ff2a 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 2b31d5a3a9a..bf55a8e0d57 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 06155e60e42..40a3d55e944 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 c04518905f8..fd023ecc590 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 851ee611dc8..eeb028066a1 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 61a24a69865..d3ac3e0c3bb 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 aa0e04cd983..8495e907432 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 b0b5cd00be2..9e9d9b2fb9f 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 326556dbbff..a356072b581 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 04d5dd34ea0..2138e3da719 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 77ae2feb277..55b1de1f894 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 03d3ba97a65..ba3af05db54 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 3535e709f31..dcc2964a8f1 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 4ec7866f31e..d2ea877cb90 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 daab9ba2646..9fd136d28fd 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 0623f11670b..b17efb15cc1 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 95e67f2cc4c..9a4a54c8d4a 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 a10b6315025..f8c2da59f1e 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 f25098235e7..3d613e04de1 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 0ea41b5056a..01e91bd133a 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 f492a56f658..8d00aadd229 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 852ea8463bd..095fa5a3cca 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 b2e36bfc949..008640ac714 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 2e7235f8d58..808df030ef6 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 55690aed17a..b7ce3e1df52 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 b12d80613d7..f74c37503c1 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 f2239adfcdf..891764f2d82 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 c91211b5345..e5bb5e020cc 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 83d462cd07a..2b14fd387e8 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 3401724aa38..ffa49e3721a 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 86f8aed7af0..476eeca1915 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 14d9b6518af..ccf384160db 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 4259abf7f6a..f2600b66dbc 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 f099a835f8c..cf9ef2ad158 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 9b79a792a16..163e13be33c 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 e430d4cbc64..ed1ad1caba2 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 7785abe0ba0..8a447958268 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 5e9f0a523b8..cfcdf14a9b5 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 5fc9188f63a..4a8cb670491 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 00eaac9bb01..194dbb88787 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 e971697c394..f3d7c7b8a88 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 86a3847c954..3651a2162c4 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 a82065679ed..ad16e9e5952 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 6901948021d..32c18231afb 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 827e61813c2..f41654ad433 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 f9df367bee8..18e5699c643 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 04d742a9391..98a839e4691 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 977fb12ffcc..9b06dc24a3d 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 6433e6479f1..63136758e89 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 9a235b39970..4d9e1da8414 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 ba7b15e2e32..b7c6418ae68 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 4593e2dba6d..c516bcb0e4c 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 399a00d8f41..7aac22d8e47 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 d86bd822410..963bb1d78f9 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 61de1257bf5..dbf6fe4b2d5 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 5f07de15d67..ad2208736da 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 59885acf622..a72ca0bb3b3 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 8e7911a8b1a..ed4b9fc2619 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 3da3ae78817..59c89ace57e 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 989b2b2e163..040a9e85edb 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 8011b968553..aff784be54b 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 07349724973..6e078fc481b 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 541734ce5d5..492a67f30d6 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 f84a6f55662..5161cda040a 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 721b5654c91..a885bece7b9 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 007da1eae98..de4f8bad673 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 28c0d68ad84..df3ff01b25b 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 72eb0e976e0..e90be0088ea 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 73853402dcd..f470c9b9eb8 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 a4bf26660f7..a910c4fb711 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 ae448c0a861..c1188dde9bd 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 260f8777aef..235d14a739b 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 07b2f576781..7b16445048a 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 9ca81f47dca..df1e3fdf328 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 83197502531..dc5318bb743 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 12fadab5cae..79b80708255 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 8b02b1dceea..c214728d89e 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 1b0e1f5c32b..266f1e99d66 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 c31c491e182..7b0c541e25b 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 8793388e279..b81b25a7813 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 ff1217fb7ef..c3c5b9db08c 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 0e5b3f898ce..56b970289fa 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 822cefd408d..f9fc8e9950c 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 bc3062ba3ed..a4b4efb5123 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 05670ba4895..e5465aa1d10 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 c700c0470a9..0d9d4fb1be6 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 a8346495d48..f9749e37c27 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 b34ebcbf07a..211680d362a 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 0bd53fac592..6aa63d17d06 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 338c55829c4..a016915c312 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 4779021b490..d6275b464e3 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 32634e6f039..c47d25e9dc3 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 d62b0e36a28..108ea179a92 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 1189b06cec1..47f76c832d8 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 01f6b53bd0b..3f720cb503d 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 37dba338c72..2b2e8e7df60 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. -- GitLab