🌱 Updated linter

This commit is contained in:
Nikhil Badyal
2023-09-12 22:38:28 +05:30
committed by Nikhil Badyal
parent e533912ccf
commit 1366c6c663
16 changed files with 65 additions and 104 deletions
+4 -5
View File
@@ -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__":