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
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
Set up a local development environment with
just devenv
and create a new branch. Then, iteratively:
-
Make changes to the code
-
Check the code for issues with
just check
-
Fix any issues with
just fix
-
Run the tests with
just test
-
Reproduce the pipeline with
just run-dvc repro
-
Commit the changes
Finally, push the branch to GitHub and open a pull request against the main
branch.