diff --git a/pyproject.toml b/pyproject.toml index b331503..f44411c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ ignore = [ "PTH122", #os-path-splitext "TRY301", #raise-within-try "PERF203", #try-except-in-loop + "UP004" #useless-object-inheritance ] fix = true show-fixes = true diff --git a/src/app.py b/src/app.py index cc4060a..e394860 100644 --- a/src/app.py +++ b/src/app.py @@ -13,7 +13,7 @@ from src.exceptions import DownloadError, PatchingFailedError, UnknownError from src.utils import slugify -class APP: +class APP(object): """Patched APK.""" def __init__(self: Self, app_name: str, config: RevancedConfig) -> None: diff --git a/src/config.py b/src/config.py index 5c00287..f96629c 100644 --- a/src/config.py +++ b/src/config.py @@ -11,7 +11,7 @@ default_patches_json = default_patches default_integrations = "https://github.com/revanced/revanced-integrations/releases/latest" -class RevancedConfig: +class RevancedConfig(object): """Revanced Configurations.""" def __init__(self: Self, env: Env) -> None: diff --git a/src/downloader/download.py b/src/downloader/download.py index c147574..94e2a2c 100644 --- a/src/downloader/download.py +++ b/src/downloader/download.py @@ -16,7 +16,7 @@ from src.exceptions import DownloadError from src.utils import handle_request_response -class Downloader: +class Downloader(object): """Files downloader.""" def __init__(self: Self, config: RevancedConfig) -> None: diff --git a/src/downloader/factory.py b/src/downloader/factory.py index cafc48e..956d3e8 100644 --- a/src/downloader/factory.py +++ b/src/downloader/factory.py @@ -10,7 +10,7 @@ from src.downloader.uptodown import UptoDown from src.exceptions import DownloadError -class DownloaderFactory: +class DownloaderFactory(object): """Downloader Factory.""" @staticmethod diff --git a/src/parser.py b/src/parser.py index 3e62d6e..96602ea 100644 --- a/src/parser.py +++ b/src/parser.py @@ -12,7 +12,7 @@ from src.patches import Patches from src.utils import possible_archs -class Parser: +class Parser(object): """Revanced Parser.""" CLI_JAR = "-jar" diff --git a/src/patches.py b/src/patches.py index 2ddade9..2645b99 100644 --- a/src/patches.py +++ b/src/patches.py @@ -12,7 +12,7 @@ from src.config import RevancedConfig from src.exceptions import AppNotFoundError, PatchesJsonLoadError -class Patches: +class Patches(object): """Revanced Patches.""" revanced_package_names: ClassVar[Dict[str, str]] = { @@ -197,7 +197,7 @@ class Patches: return total_patches -class PatchLoader: +class PatchLoader(object): """Patch Loader.""" @staticmethod