Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed May 27, 2024
1 parent 6ac04f5 commit f587644
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions heimdallr/entry_points/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
from typing import Any

import fire
import warg
from heimdallr.configuration.heimdallr_settings import (
HeimdallrSettings,
SettingScopeEnum,
)
from draugr.python_utilities import get_terminal_size
from pyfiglet import Figlet
from sorcery import assigned_names

from heimdallr import get_version
from heimdallr.configuration.heimdallr_settings import (
HeimdallrSettings,
SettingScopeEnum,
)

margin_percentage = 0 / 6
terminal_width = warg.get_terminal_size().columns
terminal_width = get_terminal_size().columns
margin = int(margin_percentage * terminal_width)
width = terminal_width - 2 * margin
underline = "_" * width
Expand Down Expand Up @@ -257,7 +257,7 @@ def draw_cli_header(
):
"""description"""
drawer(
f"{Figlet(font = font, justify = 'center', width = terminal_width).renderText(title)}{underline}\n"
f"{Figlet(font=font, justify='center', width=terminal_width).renderText(title)}{underline}\n"
)


Expand Down
7 changes: 4 additions & 3 deletions heimdallr/entry_points/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
Created on 19/01/2020
"""

from draugr.python_utilities import get_terminal_size
from pyfiglet import Figlet
from warg import ConfigShell

from heimdallr.configuration.heimdallr_settings import (
HeimdallrSettings,
SettingScopeEnum,
)
from pyfiglet import Figlet
from warg import ConfigShell, get_terminal_size

margin_percentage = 0 / 6
terminal_width = get_terminal_size().columns
Expand All @@ -29,7 +30,7 @@ def draw_cli_header(
) -> None:
"""description"""
drawer(
f"{Figlet(font = font, justify = 'center', width = terminal_width).renderText(title)}{underline}\n"
f"{Figlet(font=font, justify='center', width=terminal_width).renderText(title)}{underline}\n"
)


Expand Down

0 comments on commit f587644

Please sign in to comment.