From 583f11363f455328ae609444fb26b72297f76bb2 Mon Sep 17 00:00:00 2001 From: usamasadiq Date: Thu, 4 Feb 2021 20:16:35 +0500 Subject: [PATCH 1/2] Applied pylint amnesty --- openedx/core/apidocs.py | 2 +- openedx/core/constants.py | 2 +- openedx/core/process_warnings.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 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/openedx/core/apidocs.py b/openedx/core/apidocs.py index 86a3847c95..e38ec935df 100644 --- a/openedx/core/apidocs.py +++ b/openedx/core/apidocs.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured +""" # lint-amnesty, pylint: disable=django-not-configured # lint-amnesty, pylint: disable=django-not-configured Open API support. """ diff --git a/openedx/core/constants.py b/openedx/core/constants.py index ad16e9e595..a82065679e 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/process_warnings.py b/openedx/core/process_warnings.py index d990f55157..8c712d64cc 100644 --- a/openedx/core/process_warnings.py +++ b/openedx/core/process_warnings.py @@ -1,4 +1,4 @@ -""" +""" # lint-amnesty, pylint: disable=django-not-configured Script to process pytest warnings output by pytest-json-report plugin and output it as a html """ diff --git a/openedx/core/pytest_hooks.py b/openedx/core/pytest_hooks.py index 211680d362..b34ebcbf07 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 6aa63d17d0..0bd53fac59 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 a016915c31..338c55829c 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 d6275b464e..4779021b49 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 c47d25e9dc..32634e6f03 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 108ea179a9..d62b0e36a2 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 From 2ea5e50b3563571b902a288934c0034d1414bebd Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Fri, 5 Feb 2021 00:04:10 +0500 Subject: [PATCH 2/2] squash: remove duplicate amnesty message --- openedx/core/apidocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/apidocs.py b/openedx/core/apidocs.py index e38ec935df..86a3847c95 100644 --- a/openedx/core/apidocs.py +++ b/openedx/core/apidocs.py @@ -1,4 +1,4 @@ -""" # lint-amnesty, pylint: disable=django-not-configured # lint-amnesty, pylint: disable=django-not-configured +""" # lint-amnesty, pylint: disable=django-not-configured Open API support. """