From 1494490476d57a49ff8a69ed4baecf5eea4a0d97 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 12 Jan 2024 08:37:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Ruff=20ignores=20type?= =?UTF-8?q?=20annotation=20for=20`cli.py`,=20so=20`typer`=20continues=20to?= =?UTF-8?q?=20work=20as=20expected.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 ++ tidal_dl_ng/cli.py | 17 ++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f1228d..58fc836 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,6 +85,7 @@ testpaths = ["tests"] target-version = "py311" line-length = 120 fix = true +# Overview: https://docs.astral.sh/ruff/rules/ select = [ # flake8-2020 "YTT", @@ -126,6 +127,7 @@ ignore = [ [tool.ruff.per-file-ignores] "tests/*" = ["S101"] +"tidal_dl_ng/cli.py" = ["UP007"] [tool.black] # https://github.com/psf/black diff --git a/tidal_dl_ng/cli.py b/tidal_dl_ng/cli.py index dfc6422..69afb47 100644 --- a/tidal_dl_ng/cli.py +++ b/tidal_dl_ng/cli.py @@ -1,22 +1,21 @@ #!/usr/bin/env python +from pathlib import Path from typing import Annotated, Optional -from pathlib import Path - import typer -from tidal_dl_ng.config import Settings, Tidal -from tidal_dl_ng.constants import CTX_TIDAL, MediaType -from tidal_dl_ng.helper.path import path_file_settings -from tidal_dl_ng.helper.url import get_tidal_media_id, get_tidal_media_type -from tidal_dl_ng.helper.wrapper import WrapperLogger -from tidal_dl_ng.model.cfg import HelpSettings from rich.live import Live from rich.panel import Panel from rich.progress import BarColumn, Console, Progress, SpinnerColumn, TextColumn from rich.table import Table -from tidal_dl_ng.download import Download from tidal_dl_ng import __version__ +from tidal_dl_ng.config import Settings, Tidal +from tidal_dl_ng.constants import CTX_TIDAL, MediaType +from tidal_dl_ng.download import Download +from tidal_dl_ng.helper.path import path_file_settings +from tidal_dl_ng.helper.url import get_tidal_media_id, get_tidal_media_type +from tidal_dl_ng.helper.wrapper import WrapperLogger +from tidal_dl_ng.model.cfg import HelpSettings app = typer.Typer()