chore: drop Python 3.10 support

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
Martin Donath authored and GitHub committed 2026-10-05 16:17:37 +02:00
1 parent acee50c11a
commit 4559ba85df
7 files changed
+21 -240

No files matched your search

+2 -4
View File
@@ -891,7 +891,7 @@ def _get_git_info() -> dict[str, Any]:
text=True,
stderr=subprocess.DEVNULL,
).strip()
except FileNotFoundError as error: # noqa: PERF203
except FileNotFoundError as error:
# Git executable not found, abort early.
return {
"status": False,
@@ -912,9 +912,7 @@ def _get_git_info() -> dict[str, Any]:
else:
result[field_name] = output
if field_name == "date_ISO":
result["date"] = datetime.fromisoformat(
output.replace("Z", "+00:00")
)
result["date"] = datetime.fromisoformat(output)
result["status"] = True
return result