ruff: Fix M001 Unused `noqa` directive.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-10-28 21:24:55 -04:00 committed by Tim Abbott
parent adffad384c
commit 9d2d6c8eb7
4 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
try: try:
from django.conf import settings # noqa: F401 from django.conf import settings # noqa: F401
from analytics.models import * # noqa: F401, F403 from analytics.models import * # noqa: F403
from zerver.models import * # noqa: F401, F403 from zerver.models import * # noqa: F403
except Exception: except Exception:
import traceback import traceback

View File

@ -5,19 +5,19 @@
# For any settings that are not set in the site-specific configuration file # For any settings that are not set in the site-specific configuration file
# (/etc/zulip/settings.py in production, or dev_settings.py or test_settings.py # (/etc/zulip/settings.py in production, or dev_settings.py or test_settings.py
# in dev and test), we want to initialize them to sane defaults. # in dev and test), we want to initialize them to sane defaults.
from .default_settings import * # noqa: F401,F403 isort: skip from .default_settings import * # noqa: F403 isort: skip
# Import variables like secrets from the prod_settings file # Import variables like secrets from the prod_settings file
# Import prod_settings after determining the deployment/machine type # Import prod_settings after determining the deployment/machine type
from .config import PRODUCTION from .config import PRODUCTION
if PRODUCTION: if PRODUCTION:
from .prod_settings import * # noqa: F401,F403 isort: skip from .prod_settings import * # noqa: F403 isort: skip
else: else:
# For the Dev VM environment, we use the same settings as the # For the Dev VM environment, we use the same settings as the
# sample prod_settings.py file, with a few exceptions. # sample prod_settings.py file, with a few exceptions.
from .prod_settings_template import * # noqa: F401,F403 isort: skip from .prod_settings_template import * # noqa: F403 isort: skip
from .dev_settings import * # noqa: F401,F403 isort: skip from .dev_settings import * # noqa: F403 isort: skip
# Do not add any code after these wildcard imports! Add it to # Do not add any code after these wildcard imports! Add it to
# computed_settings instead. # computed_settings instead.

View File

@ -23,8 +23,8 @@ import django_stubs_ext
# django.db.models.Lookup[int] work correctly at runtime. # django.db.models.Lookup[int] work correctly at runtime.
django_stubs_ext.monkeypatch() django_stubs_ext.monkeypatch()
from .configured_settings import * # noqa: F401,F403 isort: skip from .configured_settings import * # noqa: F403 isort: skip
from .computed_settings import * # noqa: F401,F403 isort: skip from .computed_settings import * # noqa: F403 isort: skip
# Do not add any code after these wildcard imports! Add it to # Do not add any code after these wildcard imports! Add it to
# computed_settings instead. # computed_settings instead.

View File

@ -17,8 +17,8 @@ import os
# Ick. # Ick.
os.environ["EXTERNAL_HOST"] = os.getenv("TEST_EXTERNAL_HOST", "testserver") os.environ["EXTERNAL_HOST"] = os.getenv("TEST_EXTERNAL_HOST", "testserver")
from .settings import * # noqa: F401,F403 isort: skip from .settings import * # noqa: F403 isort: skip
from .test_extra_settings import * # noqa: F401,F403 isort: skip from .test_extra_settings import * # noqa: F403 isort: skip
# Do not add any code after these wildcard imports! Add it to # Do not add any code after these wildcard imports! Add it to
# test_extra_settings instead. # test_extra_settings instead.