From 656dc493b8b9b125c90f5b0bd1c8e364b46221fb Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 8 Jan 2024 02:09:31 +0100 Subject: [PATCH] Format scanner --- .github/workflows/coding-style.yml | 2 +- scanner/providers/implementations/thexem.py | 2 +- scanner/pyproject.toml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 scanner/pyproject.toml diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml index 697ea2cd..fdba0020 100644 --- a/.github/workflows/coding-style.yml +++ b/.github/workflows/coding-style.yml @@ -53,7 +53,7 @@ jobs: - name: Run black run: | - pip install black-with-tabs + pip3 install black-with-tabs black . --check transcoder: diff --git a/scanner/providers/implementations/thexem.py b/scanner/providers/implementations/thexem.py index 721fb236..63b21a60 100644 --- a/scanner/providers/implementations/thexem.py +++ b/scanner/providers/implementations/thexem.py @@ -62,7 +62,7 @@ class TheXem: map = await self.get_map(provider) for [id, v] in map.items(): # Only the first element is a string (the show name) so we need to ignore the type hint - master_show_name: str = v[0] # type: ignore + master_show_name: str = v[0] # type: ignore for x in v[1:]: [(name, season)] = x.items() if show_name.lower() == name.lower(): diff --git a/scanner/pyproject.toml b/scanner/pyproject.toml new file mode 100644 index 00000000..10b2f40a --- /dev/null +++ b/scanner/pyproject.toml @@ -0,0 +1,4 @@ +[tool.black] +extend-exclude = ''' +^/scanner/cache.py +'''