The next generation of the flexible epidemic modeling pipeline.
flepimop2 is published on PyPI and can be installed with:
pip install flepimop2If you are adding flepimop2 as a dependency in another project, see the installation guide.
- Clone the repository
git clone git@github.com:ACCIDDA/flepimop2.git
cd flepimop2- Create a virtual environment and install dependencies using
uv. To create a.venvwith the package installed:
uv sync --devThis will create a virtual environment and install the package along with development dependencies (mypy, pytest, ruff).
- Run default checks using
just. To run the default development tasks:
justThis will run:
ruff format- Format code.ruff check --fix- Lint and auto-fix issues.pytest --doctest-modules- Run tests including doctests.mypy --strict- Type check with strict settings.yamllint --strict- Lint YAML files.
- CI runs on pull requests to
mainand tests against Python 3.11, 3.12, 3.13, and 3.14. The CI checks are defined injust ciand include:
ruff format --check- Verify code formatting (no auto-fix).ruff check --no-fix- Lint without modifications.pytest --doctest-modules- Run test suite.mypy --strict- Type checking.
To run the same checks locally that run in CI (say for diagnosing CI failures):
just ciThere is a separate CI check which will run just yamllint and just docs to check YAML file formatting and that the documentation builds successfully.
This project was made possible by the Insight Net cooperative agreement CDC-RFA-FT-23-0069 from the CDC’s Center for Forecasting and Outbreak Analytics. Its contents are solely the responsibility of the authors and do not necessarily represent the official views of the Centers for Disease Control and Prevention.