Add YAPF style + ignore, and format tracked Python files

This commit is contained in:
2025-12-29 18:42:02 -08:00
parent c019c00aed
commit 507946a3e4
108 changed files with 11664 additions and 6494 deletions

View File

@@ -102,8 +102,11 @@ def check_urllib3_compat() -> Tuple[bool, str]:
# Looks good
debug(
"urllib3 appears usable: version=%s, exceptions=%s",
getattr(urllib3, "__version__", "<unknown>"),
hasattr(urllib3, "exceptions"),
getattr(urllib3,
"__version__",
"<unknown>"),
hasattr(urllib3,
"exceptions"),
)
return True, "OK"
@@ -129,7 +132,9 @@ def ensure_urllib3_ok(exit_on_error: bool = True) -> bool:
log(border)
if exit_on_error:
log("Please follow the steps above to fix your environment, then re-run this command.")
log(
"Please follow the steps above to fix your environment, then re-run this command."
)
try:
sys.exit(2)
except SystemExit: