From 81f6fe72d7bed755d8981ab838b42c33586d53b1 Mon Sep 17 00:00:00 2001 From: monosans Date: Wed, 8 Jan 2025 00:39:46 +0300 Subject: [PATCH] do not exceed the 80 character limit --- proxy_scraper_checker/__main__.py | 3 ++- proxy_scraper_checker/http.py | 2 +- proxy_scraper_checker/settings.py | 10 ++-------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/proxy_scraper_checker/__main__.py b/proxy_scraper_checker/__main__.py index 2c13bf48b..8b2b664cb 100644 --- a/proxy_scraper_checker/__main__.py +++ b/proxy_scraper_checker/__main__.py @@ -165,7 +165,8 @@ async def main() -> None: ) _logger.info( - "Thank you for using https://github.com/monosans/proxy-scraper-checker" + "Thank you for using " + "https://github.com/monosans/proxy-scraper-checker" ) diff --git a/proxy_scraper_checker/http.py b/proxy_scraper_checker/http.py index 7c02cc445..760a0870d 100644 --- a/proxy_scraper_checker/http.py +++ b/proxy_scraper_checker/http.py @@ -27,7 +27,7 @@ class NoCharsetHeaderError(Exception): pass -def fallback_charset_resolver(r: ClientResponse, b: bytes) -> NoReturn: # noqa: ARG001 +def fallback_charset_resolver(_r: ClientResponse, _b: bytes) -> NoReturn: raise NoCharsetHeaderError diff --git a/proxy_scraper_checker/settings.py b/proxy_scraper_checker/settings.py index ce3267631..ebdc3d62b 100644 --- a/proxy_scraper_checker/settings.py +++ b/proxy_scraper_checker/settings.py @@ -257,10 +257,7 @@ def __attrs_post_init__(self) -> None: @check_website.validator def _validate_check_website( - self, - attribute: attrs.Attribute[str], # noqa: ARG002 - value: str, - /, + self, _attribute: attrs.Attribute[str], value: str, / ) -> None: if value: parsed_url = urlparse(value) @@ -279,10 +276,7 @@ def _validate_check_website( @timeout.validator def _validate_timeout( - self, - attribute: attrs.Attribute[str], # noqa: ARG002 - value: float, # noqa: ARG002 - /, + self, _attribute: attrs.Attribute[str], _value: float, / ) -> None: if self.timeout.total is None or self.timeout.total <= 0: msg = "timeout must be positive"