A lesson for teaching how to unit test Fortran code.
From within RStudio run the following commands. First, install the needed dependencies.
install.packages(c("sandpaper", "varnish", "pegboard")) # This may not need to be called as frequently as the following commandsThen can build the site
setwd('/path/to/fortran-unit-testing-lesson')
sandpaper::build_lesson()This will create a local build of the site at site/docs/index.html.
This repo utilises fortitude (and other linters) alongside prek for linting. To install these tools we use pip therefore contributors will require python version 3.9 or above.
To setup prek
-
Create a python virtual environment and activate it
python3 -m venv .venv source .venv/bin/activate # or `source .venv/scripts/activate` on windows
-
Install the dev dependencies
python -m pip install -r requirements.txt
-
Turn on pre-commit
prek install