do not exceed the 80 character limit
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user