Skip to content

chore: apply Altissimo Python package standard - #8

Merged
lukwam merged 1 commit into
mainfrom
chore/python-standard
Nov 6, 2026
Merged

lukwam merged 1 commit into
mainfrom
chore/python-standard

Conversation

@lukwam

@lukwam lukwam commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Brings the repo in line with the Altissimo Python package standard (firedantic-extras is the reference).

  • Adds __version__ to the package root, read from installed metadata, with a fallback to the pyproject.toml version, and exports it in __all__.
  • Replaces the boilerplate description in pyproject.toml and README.md with a real one.
  • Runs mypy as a local pre-commit hook. Strict mypy was configured in pyproject.toml but never ran, so CI's lint job now enforces it. It passes with no changes to the code.
  • Replaces the placeholder test with tests/test_init.py, which checks __version__ and that every name in __all__ exists.

This commit was written on 2026-09-15 and never pushed; it is rebased onto the current main (after the CI fix and Renovate onboarding). Pre-commit and pytest pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VeRtUXLok9MasZv7KAE7p7

- src/altissimo/lmm/__init__.py: derive __version__ from installed package
  metadata (falling back to the pyproject.toml version for editable
  installs), per the Altissimo Python standard's version pattern. The
  package is still empty scaffolding (__all__ previously []), so no other
  API surface was added.
- pyproject.toml / README.md: replace the boilerplate "Altissimo Python
  client for lmm-python" description with an honest description of the
  package's current state (scaffolding, not yet implemented) since no
  concrete lmm client functionality exists yet to describe.
- .pre-commit-config.yaml: add a local mypy hook (strict mode was already
  configured in pyproject.toml but never actually run).
- tests/test_placeholder.py: picked up a pre-existing ruff-format fix
  (blank line after docstring) surfaced when the pre-commit hooks were
  run with --all-files.

poetry run pre-commit run --all-files and poetry run pytest both pass;
mypy surfaced no pre-existing type errors.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@lukwam
lukwam merged commit 5c5dff2 into main Nov 6, 2026
5 checks passed
@lukwam
lukwam deleted the chore/python-standard branch November 6, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant