🛠️ Ruff ignores type annotation for cli.py, so typer continues to work as expected.

This commit is contained in:
Robert Honz
2024-01-12 08:37:58 +01:00
parent a99c42ad02
commit 1494490476
2 changed files with 10 additions and 9 deletions
+2
View File
@@ -85,6 +85,7 @@ testpaths = ["tests"]
target-version = "py311" target-version = "py311"
line-length = 120 line-length = 120
fix = true fix = true
# Overview: https://docs.astral.sh/ruff/rules/
select = [ select = [
# flake8-2020 # flake8-2020
"YTT", "YTT",
@@ -126,6 +127,7 @@ ignore = [
[tool.ruff.per-file-ignores] [tool.ruff.per-file-ignores]
"tests/*" = ["S101"] "tests/*" = ["S101"]
"tidal_dl_ng/cli.py" = ["UP007"]
[tool.black] [tool.black]
# https://github.com/psf/black # https://github.com/psf/black
+8 -9
View File
@@ -1,22 +1,21 @@
#!/usr/bin/env python #!/usr/bin/env python
from pathlib import Path
from typing import Annotated, Optional from typing import Annotated, Optional
from pathlib import Path
import typer 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.live import Live
from rich.panel import Panel from rich.panel import Panel
from rich.progress import BarColumn, Console, Progress, SpinnerColumn, TextColumn from rich.progress import BarColumn, Console, Progress, SpinnerColumn, TextColumn
from rich.table import Table from rich.table import Table
from tidal_dl_ng.download import Download
from tidal_dl_ng import __version__ 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() app = typer.Typer()