opensafely-introspection

Notes for developers

System requirements

just

just is a handy way to save and run project-specific commands. It’s unrelated to the package with the same name on PyPI.

# macOS
brew install just

# Linux
# Install from https://github.com/casey/just/releases

# Show all available commands
just # Shortcut for just --list

Reproducibility

opensafely-introspection uses DVC (Data Version Control) to ensure the analysis is reproducible. However, the database dump is not stored in remote storage, meaning that it should first be copied to data/raw. Thereafter, set up a local development environment with

just devenv

Reproduce the pipeline with

  just run-dvc repro

Development

Set up a local development environment with

just devenv

and create a new branch. Then, iteratively:

Finally, push the branch to GitHub and open a pull request against the main branch.