Skip to content

Commit

Permalink
Turn off linting for some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Oct 11, 2024
1 parent c915d6b commit 64b7a2e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
15 changes: 8 additions & 7 deletions src/argus/site/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

load_dotenv()

from .base import *
from argus.spa.settings import *
from . import get_bool_env, get_str_env # noqa: E402
from .base import * # noqa: E402, F403
from argus.spa.settings import * # noqa: E402, F403


DEBUG = get_bool_env("DEBUG", True)
TEMPLATES[0]["OPTIONS"]["debug"] = get_bool_env("TEMPLATE_DEBUG", True)
TEMPLATES[0]["OPTIONS"]["debug"] = get_bool_env("TEMPLATE_DEBUG", True) # noqa: F405


# SECURITY WARNING: keep the secret key used in production secret!
Expand All @@ -23,17 +24,17 @@
]


INSTALLED_APPS += ["django_extensions"]
INSTALLED_APPS += ["django_extensions"] # noqa: F405

# Paths to plugins
MEDIA_PLUGINS = [
"argus.notificationprofile.media.email.EmailNotification",
"argus.notificationprofile.media.sms_as_email.SMSNotification",
]

## Logging setup
# Logging setup

LOGGING_CONFIG = None
if not LOGGING_MODULE:
if not LOGGING_MODULE: # noqa: F405
LOGGING_MODULE = "argus.site.logging.DEV"
DEV_LOGGING = setup_logging(LOGGING_MODULE)
DEV_LOGGING = setup_logging(LOGGING_MODULE) # noqa: F405
2 changes: 1 addition & 1 deletion src/argus/site/settings/dockerdev.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Settings specific for Docker-based development environments"""

from .dev import *
from .dev import * # noqa: F401, F403

# Allow all hosts, since all requests will typically come from outside the container
ALLOWED_HOSTS = ["*"]
9 changes: 5 additions & 4 deletions src/argus/site/settings/test_CI.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

from django.utils.log import DEFAULT_LOGGING

from .base import *
from argus.spa.settings import *
from . import get_bool_env, get_str_env
from .base import * # noqa: F403
from argus.spa.settings import * # noqa: F403


DEBUG = get_bool_env("DEBUG", True)
TEMPLATES[0]["OPTIONS"]["debug"] = get_bool_env("TEMPLATE_DEBUG", True)
TEMPLATES[0]["OPTIONS"]["debug"] = get_bool_env("TEMPLATE_DEBUG", True) # noqa: F405


# SECURITY WARNING: keep the secret key used in production secret!
Expand Down Expand Up @@ -37,7 +38,7 @@
TEST_OUTPUT_DIR = os.path.join("test-reports", os.getenv("TOX_ENV_NAME", ""))
TEST_OUTPUT_FILE_NAME = "test-results.xml"

## Logging setup
# Logging setup

_LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit 64b7a2e

Please sign in to comment.