reuse checks Free Software projects against FSFE REUSE recommendations. It helps declare licenses, annotate files, and verify machine-readable copyright metadata.
Overview
reuse is a command-line helper from the Free Software Foundation Europe initiative that helps projects follow the REUSE recommendations. Those steps cover choosing licenses, adding copyright and licensing information to each file, and confirming compliance so humans and tools can read how software is licensed.
The tool stays deliberately simple compared with heavier license inspection suites. It focuses on walking projects through REUSE rules rather than broad heuristic analysis. Typical workflows place licenses in a LICENSES directory, add SPDX-style headers to source files, then run checks to catch gaps.
Core commands include lint and lint-file to verify whole trees or single files, annotate to add header metadata, download to fetch licenses into LICENSES, spdx to emit an SPDX document for the tree, supported-licenses for the curated license list, and convert-dep5 to migrate older dep5 metadata to REUSE.toml.
You can install reuse via OS packages, pipx, or pip on Python 3.10 and later. Optional integrations include a Docker image for CI pipelines, documented hooks for Drone, Travis, GitHub, and GitLab CI, and a pre-commit configuration that runs reuse lint on commits.
REUSE positions itself as a complement to other compliance tooling. A compliant repository is meant to make legal review and bills of materials easier, including generating a BOM with a single spdx command.
Key features
- Project-wide REUSE compliance linting
- Per-file compliance checks
- SPDX document generation
- License download into LICENSES
- Header annotation for copyright and licenses
- Supported license listing
- dep5 to REUSE.toml conversion
- Docker image for CI workflows
Use cases
- Verify SPDX headers before release
- Automate license checks in Git CI
- Generate SPDX bills of materials
- Bootstrap REUSE-compliant repositories
- Block non-compliant commits via pre-commit