Skip to content

Commit

Permalink
Add noqa to ignore ruff false positive (#5068)
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed May 13, 2024
1 parent 4710101 commit e9f029d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion {{cookiecutter.project_slug}}/config/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@
COMPRESS_STORAGE = STORAGES["staticfiles"]["BACKEND"]
{%- endif %}
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_URL
COMPRESS_URL = STATIC_URL{% if cookiecutter.use_whitenoise == 'y' or cookiecutter.cloud_provider == 'None' %}{% endif %}
COMPRESS_URL = STATIC_URL{% if cookiecutter.use_whitenoise == 'y' or cookiecutter.cloud_provider == 'None' %} # noqa: F405
{%- endif -%}
{%- if cookiecutter.use_whitenoise == 'y' %}
# https://django-compressor.readthedocs.io/en/latest/settings/#django.conf.settings.COMPRESS_OFFLINE
COMPRESS_OFFLINE = True # Offline compression is required when using Whitenoise
Expand Down

0 comments on commit e9f029d

Please sign in to comment.