mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
Format scanner
This commit is contained in:
parent
3d697fbcd0
commit
656dc493b8
2
.github/workflows/coding-style.yml
vendored
2
.github/workflows/coding-style.yml
vendored
@ -53,7 +53,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run black
|
- name: Run black
|
||||||
run: |
|
run: |
|
||||||
pip install black-with-tabs
|
pip3 install black-with-tabs
|
||||||
black . --check
|
black . --check
|
||||||
|
|
||||||
transcoder:
|
transcoder:
|
||||||
|
@ -62,7 +62,7 @@ class TheXem:
|
|||||||
map = await self.get_map(provider)
|
map = await self.get_map(provider)
|
||||||
for [id, v] in map.items():
|
for [id, v] in map.items():
|
||||||
# Only the first element is a string (the show name) so we need to ignore the type hint
|
# 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:]:
|
for x in v[1:]:
|
||||||
[(name, season)] = x.items()
|
[(name, season)] = x.items()
|
||||||
if show_name.lower() == name.lower():
|
if show_name.lower() == name.lower():
|
||||||
|
4
scanner/pyproject.toml
Normal file
4
scanner/pyproject.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[tool.black]
|
||||||
|
extend-exclude = '''
|
||||||
|
^/scanner/cache.py
|
||||||
|
'''
|
Loading…
x
Reference in New Issue
Block a user