Skip to content

Workflows and preparations for PyPI#6

Merged
config-i1 merged 2 commits into
mainfrom
python
Jun 19, 2026
Merged

Workflows and preparations for PyPI#6
config-i1 merged 2 commits into
mainfrom
python

Conversation

@config-i1

Copy link
Copy Markdown
Collaborator

No description provided.

config-i1 and others added 2 commits June 19, 2026 10:01
- python/tests/test_functionality.py: invariant/functionality tests (no R,
  no reference dumps) -- fit across specs, IC consistency, interval
  ordering/nesting, ARMA + orders$select, diagnostics, simulate
  reproducibility, confint/summary shapes, Box-Cox positivity, outlier
  detection, pandas-Series lag inference, input validation.  Auto-lambda
  (power Z) tests are guarded by importorskip("smooth") so engine-only
  functionality runs in CI without the non-PyPI sibling packages.
- pyproject: pytest (addopts ignores test_*_parity.py), ruff (E/F/W/I/B/UP),
  mypy (ignore_missing_imports, files=src/muse) config; parity scripts
  excluded from lint too.
- .github/workflows/python-check.yaml: ubuntu job installing Armadillo +
  LAPACK/BLAS, building/installing muse via scikit-build-core, then running
  ruff / mypy / pytest.  Verified end-to-end in an isolated venv
  (30 passed, 4 auto-lambda skipped without smooth).

Bug fixed (caught by the new tests): simulate() passed h=0 to the engine's
simulateInit loop, returning an empty (0 x nsim) matrix.  Pass h=nobs so the
in-sample replay spans the full sample (nobs x nsim).

Lint fixes: zip(strict=False), raise ... from None, int|None annotation, and
type: ignore on the compiled _musecore import.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Expand the Python README into a standard package landing page (modelled on
smooth's): badges (Python versions, CI, license), logo via absolute GitHub
raw URL (renders on PyPI), feature list, install-from-source +
system-requirements + optional-dependency table, a runnable Quick Example,
a Model-specification reference table (P/T/S letters), an API-at-a-glance
table (methods + properties), the relationship-to-R note, See Also, and
License.  All documented examples were run against the live API.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@config-i1
config-i1 merged commit e681686 into main Jun 19, 2026
6 checks passed
config-i1 added a commit that referenced this pull request Jul 23, 2026
Workflows and preparations for PyPI
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