From 9835d90665951450c75042f4b84486c82b0f84d5 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 15 Oct 2024 09:15:35 -0700 Subject: [PATCH] Run hooks --- .gitignore | 1 - bandcamp_search/__init__.py | 0 bandcamp_search/__main__.py | 2 +- bandcamp_search/models.py | 4 ++-- bandcamp_search/search.py | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 bandcamp_search/__init__.py diff --git a/.gitignore b/.gitignore index 5d381cc..489bdd0 100644 --- a/.gitignore +++ b/.gitignore @@ -159,4 +159,3 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ - diff --git a/bandcamp_search/__init__.py b/bandcamp_search/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bandcamp_search/__main__.py b/bandcamp_search/__main__.py index 54a6268..02dd4f2 100644 --- a/bandcamp_search/__main__.py +++ b/bandcamp_search/__main__.py @@ -1,13 +1,13 @@ import sys from typing import cast -from bandcamp_search.search import search from bandcamp_search.models import ( AlbumSearchResult, ArtistLabelSearchResult, SearchType, TrackSearchResult, ) +from bandcamp_search.search import search if __name__ == "__main__": query = sys.argv[1] diff --git a/bandcamp_search/models.py b/bandcamp_search/models.py index d08ffe8..015d220 100644 --- a/bandcamp_search/models.py +++ b/bandcamp_search/models.py @@ -1,5 +1,5 @@ -from typing import Any, TypedDict from enum import StrEnum +from typing import Any, TypedDict class SearchType(StrEnum): @@ -49,7 +49,7 @@ class AlbumSearchResult(SearchResult): class AutoCompleteResult(TypedDict): - results: list[AlbumSearchResult|ArtistLabelSearchResult|TrackSearchResult] + results: list[AlbumSearchResult | ArtistLabelSearchResult | TrackSearchResult] stat_params_for_tag: str time_ms: int diff --git a/bandcamp_search/search.py b/bandcamp_search/search.py index afb3a89..eae3c51 100644 --- a/bandcamp_search/search.py +++ b/bandcamp_search/search.py @@ -1,6 +1,5 @@ import requests - from bandcamp_search.models import BandcampResponse, SearchType