Commit graph

2 commits

Author SHA1 Message Date
9411c83a45 chore(ci): add ruff and mypy, wire them into CI
Back the shipped py.typed promise with an enforced type check and a linter:

- Add ruff + mypy (+ types-requests) to the dev extras and dev requirements,
  with [tool.ruff]/[tool.mypy] config in pyproject.toml (mypy checks the
  package, not the tests).
- Add a lint job to the Forgejo workflow running ruff check + mypy.
- Fix the issues this surfaced: type FileLock.fd as TextIO | None, add a
  targeted type: ignore for the intentional socket.getaddrinfo monkeypatch,
  and drop an unused import.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 10:28:32 +02:00
d72361cbae chore(repo): add LICENSE, CI workflow, and untrack local config
Public-repo hygiene now that the project is hosted on Forgejo:

- LICENSE: add the MIT text that pyproject.toml already declares.
- .forgejo/workflows/ci.yml: run the pytest suite on push/PR against
  Python 3.10 and 3.12, so regressions (e.g. the healthcheck port bug)
  get caught automatically.
- Untrack llama.cpp.config and gitignore it: it is a machine-specific
  runtime config that may later hold an api_key. The tracked template
  remains llama.cpp.config.example (copy it to get started).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-07 10:23:05 +02:00