fix(deps+types): idna >=3.15 (GHSA-65pc-fj4g-8rjx) + ty check clean #34

Merged
coding-agent-marvin8 merged 0 commits from refs/pull/34/head into main 2026-05-23 23:23:47 +00:00
coding-agent-marvin8 commented 2026-05-23 22:08:31 +00:00 (Migrated from codeberg.org)

Fixes #33

Changes

Commit 1 — :bug: fix(deps): constrain idna >=3.15

  • Add [tool.uv] constraint-dependencies = ["idna>=3.15"] to pyproject.toml
  • Bump transitive idna from 3.11 → 3.16 in uv.lock
  • Bump nox-uv from 0.7.1 → 0.8.0 (required for zaojun pre-commit hook to pass)

Commit 2 — :white_check_mark: test(types): fix ty check errors

  • Update pre-commit hook revisions: ruff v0.15.11→v0.15.14, uv 0.11.7→0.11.16, zaojun 1.3.0→1.5.3
  • Restructure pyproject.toml dependency groups (zaojun-triggered)
  • Fix 4 ty check errors in tests:
    • test_audit_log.py: annotate temp_file as IO[bytes] instead of object
    • test_audit_log.py: narrow TextIOWrapper | None before .closed access
    • test_fedihelper.py: narrow Account | None before .username access

Verification

  • nox -s pysentry → 0 vulnerabilities
  • ty check . → All checks passed
  • nox -s tryke → 73 passed (3.12, 3.13, 3.14)
Fixes #33 ## Changes ### Commit 1 — `:bug:` fix(deps): constrain idna >=3.15 - Add `[tool.uv] constraint-dependencies = ["idna>=3.15"]` to `pyproject.toml` - Bump transitive `idna` from 3.11 → 3.16 in `uv.lock` - Bump `nox-uv` from 0.7.1 → 0.8.0 (required for zaojun pre-commit hook to pass) ### Commit 2 — `:white_check_mark:` test(types): fix ty check errors - Update pre-commit hook revisions: ruff `v0.15.11→v0.15.14`, uv `0.11.7→0.11.16`, zaojun `1.3.0→1.5.3` - Restructure `pyproject.toml` dependency groups (zaojun-triggered) - Fix 4 `ty check` errors in tests: - `test_audit_log.py`: annotate `temp_file` as `IO[bytes]` instead of `object` - `test_audit_log.py`: narrow `TextIOWrapper | None` before `.closed` access - `test_fedihelper.py`: narrow `Account | None` before `.username` access ## Verification - `nox -s pysentry` → 0 vulnerabilities - `ty check .` → All checks passed - `nox -s tryke` → 73 passed (3.12, 3.13, 3.14)
Sign in to join this conversation.
No description provided.