🛠️ Isort refactoring.
This commit is contained in:
+36
-36
@@ -4,48 +4,48 @@ default_language_version:
|
|||||||
default_stages: [commit, push]
|
default_stages: [commit, push]
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
# rev: "v4.4.0"
|
# rev: "v4.4.0"
|
||||||
# hooks:
|
# hooks:
|
||||||
# - id: check-case-conflict
|
# - id: check-case-conflict
|
||||||
# - id: check-merge-conflict
|
# - id: check-merge-conflict
|
||||||
# - id: check-toml
|
# - id: check-toml
|
||||||
# - id: check-yaml
|
# - id: check-yaml
|
||||||
# - id: end-of-file-fixer
|
# - id: end-of-file-fixer
|
||||||
# - id: trailing-whitespace
|
# - id: trailing-whitespace
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: "v0.0.230"
|
rev: "v0.0.230"
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
|
||||||
# - repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
# rev: "v3.0.3"
|
rev: "v3.0.3"
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: prettier
|
- id: prettier
|
||||||
#
|
|
||||||
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
# rev: v2.5.0
|
rev: v2.5.0
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: check-yaml
|
- id: check-yaml
|
||||||
# - id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
# exclude: LICENSE
|
exclude: LICENSE
|
||||||
#
|
|
||||||
# - repo: local
|
# Due to UP007 and Typer this stays disabled: https://github.com/tiangolo/typer/issues/533
|
||||||
# hooks:
|
# - repo: local
|
||||||
# - id: pyupgrade
|
# hooks:
|
||||||
# name: pyupgrade
|
# - id: pyupgrade
|
||||||
# entry: poetry run pyupgrade --py310-plus
|
# name: pyupgrade
|
||||||
# types: [python]
|
# entry: poetry run pyupgrade --py310-plus
|
||||||
# language: system
|
# types: [python]
|
||||||
#
|
# language: system
|
||||||
# - repo: local
|
- repo: local
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: isort
|
- id: isort
|
||||||
# name: isort
|
name: isort
|
||||||
# entry: poetry run isort --settings-path pyproject.toml
|
entry: poetry run isort --settings-path pyproject.toml
|
||||||
# types: [python]
|
types: [python]
|
||||||
# language: system
|
language: system
|
||||||
#
|
#
|
||||||
# - repo: local
|
# - repo: local
|
||||||
# hooks:
|
# hooks:
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
#!/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 rich.live import Live
|
from rich.live import Live
|
||||||
from rich.panel import Panel
|
from rich.panel import Panel
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
from typing import Any
|
||||||
|
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from json import JSONDecodeError
|
from json import JSONDecodeError
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import tidalapi
|
import tidalapi
|
||||||
from requests import HTTPError
|
from requests import HTTPError
|
||||||
|
|||||||
@@ -29,4 +29,3 @@ class ResultSearch:
|
|||||||
album: str
|
album: str
|
||||||
duration_sec: int
|
duration_sec: int
|
||||||
obj: object
|
obj: object
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user