diff --git a/heimdallr/entry_points/cli.py b/heimdallr/entry_points/cli.py index fc8afdc..b9ea00a 100644 --- a/heimdallr/entry_points/cli.py +++ b/heimdallr/entry_points/cli.py @@ -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 @@ -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" ) diff --git a/heimdallr/entry_points/repl.py b/heimdallr/entry_points/repl.py index 9cb184e..3fdef96 100644 --- a/heimdallr/entry_points/repl.py +++ b/heimdallr/entry_points/repl.py @@ -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 @@ -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" )