pylint-amnesty on common/lib

This commit is contained in:
Jawayria
2021-02-02 20:12:07 +05:00
parent 9e677960bf
commit 12065a30e0
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
"""Code run by pylint before running any tests."""
"""Code run by pylint before running any tests.""" # lint-amnesty, pylint: disable=django-not-configured
# Patch the xml libs before anything else.
@@ -13,7 +13,7 @@ defuse_xml_libs()
@pytest.fixture(autouse=True)
def no_webpack_loader(monkeypatch):
def no_webpack_loader(monkeypatch): # lint-amnesty, pylint: disable=missing-function-docstring
monkeypatch.setattr(
"webpack_loader.templatetags.webpack_loader.render_bundle",
lambda entry, extension=None, config='DEFAULT', attrs='': ''

View File

@@ -1,6 +1,6 @@
[pytest]
DJANGO_SETTINGS_MODULE = openedx.tests.settings
addopts = --nomigrations --reuse-db --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none
addopts = --nomigrations --reuse-db --durations=20 --json-report --json-report-omit keywords streams collectors log traceback tests --json-report-file=none # lint-amnesty, pylint: disable=syntax-error
# Enable default handling for all warnings, including those that are ignored by default;
# but hide rate-limit warnings (because we deliberately don't throttle test user logins)
# and field_data deprecation warnings (because fixing them requires a major low-priority refactoring)