The Makefile is generated by bmk (its first line reads
# BMK MAKEFILE <version>) and is rewritten when bmk updates it, so this file keeps no copy of the
target list. Run
make help
for the authoritative, current list: it reads the target comments from the Makefile itself.
bmk --help and bmk <command> --help describe the underlying commands.
The targets used day to day:
make dev – editable install with the dev extras (uv pip install -e ".[dev]").make test – the full local gate: ruff format and lint, bandit, import-linter, pip-audit,
pyright and pytest with coverage (doctests included through --doctest-modules). It also
raises dependency floors and applies ruff’s formatting and fixes, so expect the working tree to
change.make testintegration (aliases testi, ti) – the integration tests only.make bump-patch / bump-minor / bump-major – bump the version in pyproject.toml, turn
the [Unreleased] section of CHANGELOG.md into the new version, and rewrite
src/sysdelta/__init__conf__.py to match.make push – run the tests, commit and push. Give the commit message with MSG="..." (it
reaches bmk as BMK_COMMIT_MESSAGE and survives punctuation, newlines and $); without one,
bmk prompts.make release – tag the current version and create the GitHub release.| Command | What it runs |
|---|---|
make test |
All tests EXCEPT those marked integration |
make testintegration |
ONLY tests marked integration |
| CI | All tests EXCEPT those marked local_only (-m "not local_only") |
pytest tests/ |
ALL tests (no marker filter) |
A test that needs external resources (a remote host, a database) carries both
@pytest.mark.integration (so make test skips it and make testintegration runs it) and
@pytest.mark.local_only (so CI skips it).
Mark tests that require external resources:
@pytest.mark.local_only
@pytest.mark.integration
@pytest.mark.os_agnostic
def test_real_external_service(...):
"""Integration test requiring external service."""
...
These tests are skipped by make test and in CI, and run with make testintegration.
pyproject.toml ([project]).src/sysdelta/__init__conf__.py; a version bump rewrites that file, so do not
edit the version there by hand.shell_command constant in __init__conf__.py
(sysdelta); [project.scripts] in pyproject.toml registers it together
with sysdelta.make test runs pip-audit against the project environment. If it reports a vulnerability,
raise the affected floor in pyproject.toml (a transitive dependency goes into the dev extras
with a comment naming the CVE).The GitHub Actions workflows under .github/workflows/ are distributed from the
default_cicd_public template; change them there, not in this repository.
default_cicd_public.yml – lint, type-check and test on Linux, macOS and Windows for every
Python version listed in the pyproject.toml classifiers, verify the pipx and uv installs and
run the notebooks.default_release_public.yml – on a v* tag, builds the artifacts and publishes them to
PyPI, with the PYPI_API_TOKEN secret when it is set and otherwise through a PyPI Trusted
Publisher (OIDC).To publish a release:
make bump-patch (or bump-minor / bump-major), then commit and push.make release tags the current version and creates the GitHub release; the tag starts
default_release_public.yml.make test writes coverage.xml. CI uploads it with codecov/codecov-action; make codecov
uploads it from your machine only when the codecovcli command is on PATH, since codecov-cli is
left out of the dev extra (see pyproject.toml).CODECOV_TOKEN (see .env.example) or export it in your shell.