From f5e1ec7a3a65460b47af1329dcdfab3dc602f39b Mon Sep 17 00:00:00 2001 From: Kinuax Date: Sat, 11 May 2024 21:21:15 +0200 Subject: [PATCH] Set absolute imports in cli. --- rolabesti/cli/commands/config.py | 2 +- rolabesti/cli/commands/copy.py | 4 ++-- rolabesti/cli/commands/list.py | 4 ++-- rolabesti/cli/commands/play.py | 4 ++-- rolabesti/cli/commands/tag.py | 4 ++-- rolabesti/cli/main.py | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rolabesti/cli/commands/config.py b/rolabesti/cli/commands/config.py index 1145265..2307cfe 100644 --- a/rolabesti/cli/commands/config.py +++ b/rolabesti/cli/commands/config.py @@ -3,7 +3,7 @@ import typer -from ..utils import validate_length_limits +from rolabesti.cli.utils import validate_length_limits from rolabesti.config import get_settings, max_overlap_length from rolabesti.controllers import ConfigController from rolabesti.models import Sortings diff --git a/rolabesti/cli/commands/copy.py b/rolabesti/cli/commands/copy.py index 1fa053b..e5e621f 100644 --- a/rolabesti/cli/commands/copy.py +++ b/rolabesti/cli/commands/copy.py @@ -3,7 +3,7 @@ import typer -from ..options import ( +from rolabesti.cli.options import ( artist_option, title_option, album_option, @@ -14,7 +14,7 @@ max_tracklist_length_option, sorting_option, ) -from ..utils import validate_length_limits +from rolabesti.cli.utils import validate_length_limits from rolabesti.config import get_settings from rolabesti.controllers import CopyController diff --git a/rolabesti/cli/commands/list.py b/rolabesti/cli/commands/list.py index 8b0209e..de7e0b2 100644 --- a/rolabesti/cli/commands/list.py +++ b/rolabesti/cli/commands/list.py @@ -1,6 +1,6 @@ import typer -from ..options import ( +from rolabesti.cli.options import ( artist_option, title_option, album_option, @@ -10,7 +10,7 @@ min_track_length_option, sorting_option, ) -from ..utils import validate_length_limits +from rolabesti.cli.utils import validate_length_limits from rolabesti.config import get_settings from rolabesti.controllers import ListController diff --git a/rolabesti/cli/commands/play.py b/rolabesti/cli/commands/play.py index 5a6f208..8b34e33 100644 --- a/rolabesti/cli/commands/play.py +++ b/rolabesti/cli/commands/play.py @@ -2,7 +2,7 @@ import typer -from ..options import ( +from rolabesti.cli.options import ( artist_option, title_option, album_option, @@ -13,7 +13,7 @@ max_tracklist_length_option, sorting_option, ) -from ..utils import validate_length_limits +from rolabesti.cli.utils import validate_length_limits from rolabesti.config import get_settings, max_overlap_length from rolabesti.controllers import PlayController diff --git a/rolabesti/cli/commands/tag.py b/rolabesti/cli/commands/tag.py index e939f7f..ccc11e5 100644 --- a/rolabesti/cli/commands/tag.py +++ b/rolabesti/cli/commands/tag.py @@ -2,7 +2,7 @@ import typer -from ..options import ( +from rolabesti.cli.options import ( artist_option, title_option, album_option, @@ -12,7 +12,7 @@ min_track_length_option, enum_callback, ) -from ..utils import validate_length_limits +from rolabesti.cli.utils import validate_length_limits from rolabesti.config import get_settings from rolabesti.controllers import TagController from rolabesti.models import ID3Tags diff --git a/rolabesti/cli/main.py b/rolabesti/cli/main.py index 9248b10..74b4971 100644 --- a/rolabesti/cli/main.py +++ b/rolabesti/cli/main.py @@ -4,8 +4,8 @@ from click import Context from typer.core import TyperGroup -from .commands import config, copy, init, list_, play, tag from rolabesti import __app_name__, __description__, __version__ +from rolabesti.cli.commands import config, copy, init, list_, play, tag class OrderCommandsTyperGroup(TyperGroup):