digitalfabrik/integreat-cms

View on GitHub
integreat_cms/matomo_api/apps.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from __future__ import annotations

import logging
from typing import TYPE_CHECKING

from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _

if TYPE_CHECKING:
    from typing import Final

    from django.utils.functional import Promise

logger = logging.getLogger(__name__)


class MatomoApiConfig(AppConfig):
    """
    MatomoApiClient config inheriting the django AppConfig
    """

    #: Full Python path to the application
    name: Final[str] = "integreat_cms.matomo_api"
    #: Human-readable name for the application
    verbose_name: Final[Promise] = _("Matomo API")