Skip to content

Commit

Permalink
do not exceed the 80 character limit
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Jan 7, 2025
1 parent c93b8f5 commit 81f6fe7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
3 changes: 2 additions & 1 deletion proxy_scraper_checker/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down
2 changes: 1 addition & 1 deletion proxy_scraper_checker/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
10 changes: 2 additions & 8 deletions proxy_scraper_checker/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"
Expand Down

0 comments on commit 81f6fe7

Please sign in to comment.