Skip to content

Settings

dotflow.settings.Settings

Settings DotFlow

Source code in dotflow/settings.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Settings:
    """Settings DotFlow"""

    START_PATH = _OUTPUT
    GITIGNORE = Path(".gitignore")

    LOG_PROFILE = "dotflow"
    LOG_FILE_NAME = Path("flow.log")
    LOG_PATH = _OUTPUT / "flow.log"
    LOG_FORMAT = "%(asctime)s - %(levelname)s [%(name)s]: %(message)s"

    TEMPLATE_REPO = "https://github.com/dotflow-io/templates.git"
    TEMPLATE_BRANCH = "master"
    TEMPLATE_CLOUD_DIR = "cloud"

    ICON = ":game_die:"
    STEP_ICON = ":gear:"
    ERROR_ALERT = f"{ICON} [bold red]Error:[/bold red]"
    INFO_ALERT = f"{ICON} [bold blue]Info:[/bold blue]"
    WARNING_ALERT = f"{ICON} [bold yellow]Warning:[/bold yellow]"
    QUESTION_ALERT = f"{ICON} [bold magenta]Question:[/bold magenta]"

START_PATH = _OUTPUT class-attribute instance-attribute

GITIGNORE = Path('.gitignore') class-attribute instance-attribute

LOG_PROFILE = 'dotflow' class-attribute instance-attribute

LOG_FILE_NAME = Path('flow.log') class-attribute instance-attribute

LOG_PATH = _OUTPUT / 'flow.log' class-attribute instance-attribute

LOG_FORMAT = '%(asctime)s - %(levelname)s [%(name)s]: %(message)s' class-attribute instance-attribute

ICON = ':game_die:' class-attribute instance-attribute

ERROR_ALERT = f'{ICON} [bold red]Error:[/bold red]' class-attribute instance-attribute

INFO_ALERT = f'{ICON} [bold blue]Info:[/bold blue]' class-attribute instance-attribute

WARNING_ALERT = f'{ICON} [bold yellow]Warning:[/bold yellow]' class-attribute instance-attribute