do not exceed the 80 character limit

This commit is contained in:
monosans
2025-01-08 00:39:46 +03:00
parent c93b8f5414
commit 81f6fe72d7
3 changed files with 5 additions and 10 deletions
+2 -1
View File
@@ -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"
)
+1 -1
View File
@@ -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
+2 -8
View File
@@ -257,10 +257,7 @@ class Settings:
@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 @@ class Settings:
@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"