cd <your repo root>
wget https://github.com/GSI-HPC/github-workflow-templates/raw/refs/heads/main/.pre-commit-config.yaml
mkdir -p .github/workflows
cd .github/workflows
wget https://github.com/GSI-HPC/github-workflow-templates/raw/refs/heads/main/.github/workflows/fair-software.yml
wget https://github.com/GSI-HPC/github-workflow-templates/raw/refs/heads/main/.github/workflows/reuse.yml
cd ../..
git add .pre-commit-config.yaml .github/workflows/fair-software.yml .github/workflows/reuse.yml
To enable the REUSE pre-commit hook install pre-commit
and then install the
configured pre-commit hook:
pip install pre-commit
pre-commit install
The fair-software workflow will produce the Markdown to paste into your README.md
For a REUSE badge, it is recommended to simply add (you can generate this badge on the GitHub workflow webpage):
[![REUSE status](https://github.com/GSI-HPC/<repo name>/actions/workflows/reuse.yml/badge.svg)](https://github.com/GSI-HPC/<repo name>/actions/workflows/reuse.yml)