mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-06 05:00:18 +03:00
modify ruff 0.7.3 rule
This commit is contained in:
parent
c8fb4a128b
commit
94afb9d5f4
|
@ -1,10 +1,11 @@
|
||||||
# ruff: noqa: E501
|
# ruff: noqa: E501
|
||||||
import logging # 표준 라이브러리
|
# Standard Library
|
||||||
import ssl # 표준 라이브러리
|
import logging
|
||||||
|
import ssl
|
||||||
|
|
||||||
{% if cookiecutter.use_sentry == 'y' -%}
|
{% if cookiecutter.use_sentry == 'y' -%}
|
||||||
|
# Third-party
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
|
|
||||||
{%- if cookiecutter.use_celery == 'y' %}
|
{%- if cookiecutter.use_celery == 'y' %}
|
||||||
from sentry_sdk.integrations.celery import CeleryIntegration
|
from sentry_sdk.integrations.celery import CeleryIntegration
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -13,15 +14,17 @@ from sentry_sdk.integrations.logging import LoggingIntegration
|
||||||
from sentry_sdk.integrations.redis import RedisIntegration
|
from sentry_sdk.integrations.redis import RedisIntegration
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
|
# Local
|
||||||
from .base import * # noqa: F403
|
from .base import * # noqa: F403
|
||||||
from .base import DATABASES # 로컬 모듈
|
from .base import (
|
||||||
from .base import INSTALLED_APPS # 로컬 모듈
|
DATABASES,
|
||||||
from .base import REDIS_URL # 로컬 모듈
|
INSTALLED_APPS,
|
||||||
from .base import env # 로컬 모듈
|
REDIS_URL,
|
||||||
|
env,
|
||||||
{%- if cookiecutter.use_drf == "y" %}
|
{%- if cookiecutter.use_drf == "y" %}
|
||||||
from .base import SPECTACULAR_SETTINGS # DRF 관련 설정
|
SPECTACULAR_SETTINGS,
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
)
|
||||||
|
|
||||||
# GENERAL
|
# GENERAL
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user