fixed ruff errors

This commit is contained in:
2026-01-21 23:11:29 -05:00
parent 139727bf50
commit 86e72d1da0
2 changed files with 3 additions and 9 deletions

View File

@@ -55,13 +55,7 @@ def get_connection_info() -> tuple[str, str, str, str, str | None]:
password = getenv("POSTGRES_PASSWORD")
if None in (database, host, port, username):
error = (
"Missing environment variables for Postgres connection.\n"
f"{database=}\n"
f"{host=}\n"
f"{port=}\n"
f"{username=}\n"
)
error = f"Missing environment variables for Postgres connection.\n{database=}\n{host=}\n{port=}\n{username=}\n"
raise ValueError(error)
return cast("tuple[str, str, str, str, str | None]", (database, host, port, username, password))