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 +'''