cleanup/rm pylint ignores

This commit is contained in:
2025-02-16 08:50:53 -05:00
parent 36975fa3f3
commit b24176b12f
17 changed files with 19 additions and 52 deletions

View File

@ -1,4 +0,0 @@
#!/usr/bin/env python3.12
# pylint: disable=empty-docstring
"""
"""

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3.12
# pylint: disable=wrong-import-order, wrong-import-position bare-except, broad-exception-caught
import os
import time
@ -15,8 +14,6 @@ from . import redis_cache
from lyric_search import utils, notifier
from lyric_search.constructors import LyricsResult
logger = logging.getLogger()
log_level = logging.getLevelName(logger.level)
@ -209,9 +206,6 @@ class Cache:
logging.critical("Cache storage error!")
traceback.print_exc()
# pylint: disable=unused-argument
async def search(self, artist: str, song: str, **kwargs) -> Optional[LyricsResult]:
"""
Cache Search
@ -222,7 +216,6 @@ class Cache:
Optional[LyricsResult]: The result, if found - None otherwise.
"""
try:
# pylint: enable=unused-argument
artist: str = artist.strip().lower()
song: str = song.strip().lower()
input_track: str = f"{artist} - {song}"

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3.12
# pylint: disable=bare-except, broad-exception-caught, wrong-import-order, wrong-import-position
import sys
sys.path.insert(1,'..')
@ -37,7 +36,6 @@ class Genius:
self.cache = cache.Cache()
self.redis_cache = redis_cache.RedisCache()
# pylint: disable=unused-argument
async def search(self, artist: str, song: str,
**kwargs) -> Optional[LyricsResult]:
"""
@ -49,7 +47,6 @@ class Genius:
Optional[LyricsResult]: The result, if found - None otherwise.
"""
try:
# pylint: enable=unused-argument
artist: str = artist.strip().lower()
song: str = song.strip().lower()
time_start: float = time.time()

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python3.12
# pylint: disable=bare-except, broad-exception-caught, wrong-import-position
import sys
import time