Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description = "High-integrity micro-learning platform for Active Inference & the
authors = [
{name = "Daniel Ari Friedman", email = "daniel@activeinference.institute"}
]
requires-python = ">=3.10"
requires-python = ">=3.11"
dependencies = [
"numpy>=1.24.0",
"matplotlib>=3.7.0",
Expand Down Expand Up @@ -74,6 +74,7 @@ module = ["scipy.*"]
ignore_missing_imports = true

[tool.uv]
constraint-dependencies = ["pillow>=13.0.0"]

[dependency-groups]
# The tools the documented gates run (`uv run pytest`, `uv run mypy src`) must be
Expand Down
4 changes: 2 additions & 2 deletions scripts/reset_local_skilltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import subprocess
import sys
import time
from datetime import datetime, timezone
from datetime import UTC, datetime
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -65,7 +65,7 @@ def dashboard_pid_path(state_dir: Path) -> Path:

def timestamp() -> str:
"""Return a compact UTC timestamp for backup filenames."""
return datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%SZ")
return datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")


def backup_auth_state(
Expand Down
2 changes: 1 addition & 1 deletion src/release_readiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def render_release_readiness_inventory(
date: _dt.date | None = None,
) -> str:
"""Render the canonical release-readiness inventory Markdown."""
today = date or _dt.datetime.now(_dt.timezone.utc).date()
today = date or _dt.datetime.now(_dt.UTC).date()
probes = blocker_probes or BlockerProbeSummary(
public_repository="not refreshed by this validation run",
docker_daemon="not refreshed by this validation run",
Expand Down
4 changes: 2 additions & 2 deletions src/skilltree/dependency_reconciler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time
from collections.abc import Callable, Iterable
from dataclasses import dataclass, field
from datetime import datetime, timezone
from datetime import UTC, datetime
from pathlib import Path
from typing import Any, Protocol

Expand Down Expand Up @@ -98,7 +98,7 @@ def to_dict(self) -> dict[str, Any]:


def _utc_now() -> str:
return datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")
return datetime.now(UTC).isoformat().replace("+00:00", "Z")


def dependency_pair_from_mapping(
Expand Down
4 changes: 2 additions & 2 deletions src/skilltree/local_auth_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import stat
import urllib.parse
from dataclasses import dataclass
from datetime import datetime, timezone
from datetime import UTC, datetime
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -361,4 +361,4 @@ def describe_local_auth(


def _utc_now() -> str:
return datetime.now(timezone.utc).isoformat(timespec="seconds")
return datetime.now(UTC).isoformat(timespec="seconds")
Loading
Loading