mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🚨 Updated lints (#308)
This commit is contained in:
+8
-18
@@ -1,6 +1,6 @@
|
||||
"""Revanced Configurations."""
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
from typing import List, Self
|
||||
|
||||
from environs import Env
|
||||
from requests import Session
|
||||
@@ -8,15 +8,13 @@ from requests import Session
|
||||
default_cli = "https://github.com/revanced/revanced-cli/releases/latest"
|
||||
default_patches = "https://github.com/revanced/revanced-patches/releases/latest"
|
||||
default_patches_json = default_patches
|
||||
default_integrations = (
|
||||
"https://github.com/revanced/revanced-integrations/releases/latest"
|
||||
)
|
||||
default_integrations = "https://github.com/revanced/revanced-integrations/releases/latest"
|
||||
|
||||
|
||||
class RevancedConfig(object):
|
||||
class RevancedConfig:
|
||||
"""Revanced Configurations."""
|
||||
|
||||
def __init__(self, env: Env) -> None:
|
||||
def __init__(self: Self, env: Env) -> None:
|
||||
from src.utils import default_build, request_header
|
||||
|
||||
self.env = env
|
||||
@@ -34,18 +32,10 @@ class RevancedConfig(object):
|
||||
self.dry_run = env.bool("DRY_RUN", False)
|
||||
self.global_cli_dl = env.str("GLOBAL_CLI_DL", default_cli)
|
||||
self.global_patches_dl = env.str("GLOBAL_PATCHES_DL", default_patches)
|
||||
self.global_patches_json_dl = env.str(
|
||||
"GLOBAL_PATCHES_JSON_DL", default_patches_json
|
||||
)
|
||||
self.global_integrations_dl = env.str(
|
||||
"GLOBAL_INTEGRATIONS_DL", default_integrations
|
||||
)
|
||||
self.global_keystore_name = env.str(
|
||||
"GLOBAL_KEYSTORE_FILE_NAME", "revanced.keystore"
|
||||
)
|
||||
self.global_patches_json_dl = env.str("GLOBAL_PATCHES_JSON_DL", default_patches_json)
|
||||
self.global_integrations_dl = env.str("GLOBAL_INTEGRATIONS_DL", default_integrations)
|
||||
self.global_keystore_name = env.str("GLOBAL_KEYSTORE_FILE_NAME", "revanced.keystore")
|
||||
self.global_archs_to_build = env.list("GLOBAL_ARCHS_TO_BUILD", [])
|
||||
self.extra_download_files: List[str] = env.list("EXTRA_FILES", [])
|
||||
self.apk_editor = "apkeditor-output.jar"
|
||||
self.extra_download_files.append(
|
||||
"https://github.com/REAndroid/APKEditor@apkeditor.jar"
|
||||
)
|
||||
self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar")
|
||||
|
||||
Reference in New Issue
Block a user