mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
🌱 Updated linter
This commit is contained in:
committed by
Nikhil Badyal
parent
e533912ccf
commit
1366c6c663
@@ -1,7 +1,6 @@
|
||||
"""Status check."""
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
import requests
|
||||
from bs4 import BeautifulSoup, Tag
|
||||
@@ -53,7 +52,7 @@ def apkcombo_scrapper(package_name: str) -> str:
|
||||
raise APKComboIconScrapError(url=apkcombo_url) from e
|
||||
|
||||
|
||||
def bigger_image(possible_links: List[str]) -> str:
|
||||
def bigger_image(possible_links: list[str]) -> str:
|
||||
"""Select image with higher dimension."""
|
||||
higher_dimension_url = ""
|
||||
max_dimension = 0
|
||||
@@ -125,7 +124,7 @@ def gplay_icon_scrapper(package_name: str) -> str:
|
||||
return str(
|
||||
gplay_app(
|
||||
package_name,
|
||||
)["icon"]
|
||||
)["icon"],
|
||||
)
|
||||
except BuilderError as e:
|
||||
raise GooglePlayScraperException from e
|
||||
@@ -168,7 +167,7 @@ def icon_scrapper(package_name: str) -> str:
|
||||
return not_found_icon
|
||||
|
||||
|
||||
def generate_markdown_table(data: List[List[str]]) -> str:
|
||||
def generate_markdown_table(data: list[list[str]]) -> str:
|
||||
"""Generate markdown table."""
|
||||
if not data:
|
||||
return "No data to generate for the table."
|
||||
@@ -219,7 +218,7 @@ def main() -> None:
|
||||
output += table
|
||||
with Path("status.md").open("w", encoding="utf_8") as status:
|
||||
status.write(output)
|
||||
print(output)
|
||||
print(output) # noqa: T201
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user