🛠️ Isort refactoring.

This commit is contained in:
Robert Honz
2024-01-12 10:47:17 +01:00
parent 7af7fd6219
commit 8196213247
4 changed files with 40 additions and 39 deletions
+20 -20
View File
@@ -19,18 +19,19 @@ repos:
hooks:
- id: ruff
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: "v3.0.3"
# hooks:
# - id: prettier
#
# - repo: https://github.com/pre-commit/pre-commit-hooks
# rev: v2.5.0
# hooks:
# - id: check-yaml
# - id: end-of-file-fixer
# exclude: LICENSE
#
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: LICENSE
# Due to UP007 and Typer this stays disabled: https://github.com/tiangolo/typer/issues/533
# - repo: local
# hooks:
# - id: pyupgrade
@@ -38,14 +39,13 @@ repos:
# entry: poetry run pyupgrade --py310-plus
# types: [python]
# language: system
#
# - repo: local
# hooks:
# - id: isort
# name: isort
# entry: poetry run isort --settings-path pyproject.toml
# types: [python]
# language: system
- repo: local
hooks:
- id: isort
name: isort
entry: poetry run isort --settings-path pyproject.toml
types: [python]
language: system
#
# - repo: local
# hooks:
+2 -1
View File
@@ -1,7 +1,8 @@
#!/usr/bin/env python
from pathlib import Path
from typing import Annotated, Optional
from pathlib import Path
import typer
from rich.live import Live
from rich.panel import Panel
+2 -1
View File
@@ -1,6 +1,7 @@
from typing import Any
from collections.abc import Callable
from json import JSONDecodeError
from typing import Any
import tidalapi
from requests import HTTPError
-1
View File
@@ -29,4 +29,3 @@ class ResultSearch:
album: str
duration_sec: int
obj: object