Skip to content

Commit

Permalink
Fix ruff checks
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Sep 25, 2023
1 parent de35afb commit 3ceda65
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/config/settings/base_after_django_environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.redis import RedisIntegration

from .base import * # noqa
from src.config.settings.base import PROJECT_ROOT_DIR, WAGTAILSEARCH_BACKENDS

# Read environment variables using `django-environ`, use `.env` if it exists
env = environ.Env()
Expand Down Expand Up @@ -112,7 +112,6 @@

WAGTAILSEARCH_BACKENDS.default.URLS = ([OPENSEARCH_URL],)


# ClamAV
CLAM_AV_USERNAME = env("CLAM_AV_USERNAME", default=None)
CLAM_AV_PASSWORD = env("CLAM_AV_PASSWORD", default=None)
Expand Down
18 changes: 10 additions & 8 deletions src/config/settings/build.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
from .base import * # noqa

VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING = "value-does-not-matter-for-build"

APP_ENV = "build"

SECRET_KEY = "value-does-not-matter-for-build"
SECRET_KEY = VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING

ELASTICSEARCH_DSL = {
"default": {
"hosts": "value-does-not-matter-for-build",
"hosts": VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING,
},
}

CLAM_AV_USERNAME = "value-does-not-matter-for-build"
CLAM_AV_PASSWORD = "value-does-not-matter-for-build"
CLAM_AV_DOMAIN = "value-does-not-matter-for-build"
CLAM_AV_USERNAME = VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING
CLAM_AV_PASSWORD = VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING
CLAM_AV_DOMAIN = VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING

DATABASES = {
"default": {
"username": "value-does-not-matter-for-build",
"password": "value-does-not-matter-for-build",
"dbname": "value-does-not-matter-for-build",
"username": VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING,
"password": VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING,
"dbname": VALUE_DOES_NOT_MATTER_FOR_BUILD_STRING,
"engine": "postgres",
"port": 5432,
"host": "localhost",
Expand Down
1 change: 0 additions & 1 deletion src/config/settings/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from .base_after_django_environ import * # noqa


AWS_S3_URL_PROTOCOL = "https:"
AWS_S3_CUSTOM_DOMAIN = env("AWS_S3_CUSTOM_DOMAIN") # noqa F405
AWS_QUERYSTRING_AUTH = False
Expand Down

0 comments on commit 3ceda65

Please sign in to comment.