From 90cc9f8016be14b81ea29ab442129f50f37241bb Mon Sep 17 00:00:00 2001 From: Kinuax Date: Sun, 12 May 2024 06:45:16 +0200 Subject: [PATCH] Revert to relative imports (#27) --- 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 2307cfe..1145265 100644 --- a/rolabesti/cli/commands/config.py +++ b/rolabesti/cli/commands/config.py @@ -3,7 +3,7 @@ import typer -from rolabesti.cli.utils import validate_length_limits +from ..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 e5e621f..1fa053b 100644 --- a/rolabesti/cli/commands/copy.py +++ b/rolabesti/cli/commands/copy.py @@ -3,7 +3,7 @@ import typer -from rolabesti.cli.options import ( +from ..options import ( artist_option, title_option, album_option, @@ -14,7 +14,7 @@ max_tracklist_length_option, sorting_option, ) -from rolabesti.cli.utils import validate_length_limits +from ..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 de7e0b2..8b0209e 100644 --- a/rolabesti/cli/commands/list.py +++ b/rolabesti/cli/commands/list.py @@ -1,6 +1,6 @@ import typer -from rolabesti.cli.options import ( +from ..options import ( artist_option, title_option, album_option, @@ -10,7 +10,7 @@ min_track_length_option, sorting_option, ) -from rolabesti.cli.utils import validate_length_limits +from ..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 8b34e33..5a6f208 100644 --- a/rolabesti/cli/commands/play.py +++ b/rolabesti/cli/commands/play.py @@ -2,7 +2,7 @@ import typer -from rolabesti.cli.options import ( +from ..options import ( artist_option, title_option, album_option, @@ -13,7 +13,7 @@ max_tracklist_length_option, sorting_option, ) -from rolabesti.cli.utils import validate_length_limits +from ..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 ccc11e5..e939f7f 100644 --- a/rolabesti/cli/commands/tag.py +++ b/rolabesti/cli/commands/tag.py @@ -2,7 +2,7 @@ import typer -from rolabesti.cli.options import ( +from ..options import ( artist_option, title_option, album_option, @@ -12,7 +12,7 @@ min_track_length_option, enum_callback, ) -from rolabesti.cli.utils import validate_length_limits +from ..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 74b4971..9248b10 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):