Skip to content
Myr

Fix ruff error and script (#2680)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Amin Alaee · committed by GitHub · parent 472597f · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:httpx/_utils.py+2 added-2 removed
462 unmodified lines
463464def is_ipv4_hostname(hostname: str) -> bool:465 try:466 ipaddress.IPv4Address(hostname.split("/")[0])467 except:467 except Exception:468 return False469 return True470471472def is_ipv6_hostname(hostname: str) -> bool:473 try:474 ipaddress.IPv6Address(hostname.split("/")[0])475 except:475 except Exception:476 return False477 return True
modified:scripts/check+1 added-1 removed
9 unmodified lines
1011./scripts/sync-version12${PREFIX}black --check --diff --target-version=py37 $SOURCE_FILES13${PREFIX}mypy $SOURCE_FILES14${PREFIX}ruff check --diff $SOURCE_FILES14${PREFIX}ruff check $SOURCE_FILES