Skip to content

Commit f8517db

Browse files
committed
pre-commit: Add REUSE SPDX compliance check.
Validates SPDX license headers on modified files before commit using the reuse tool from FSFE. Signed-off-by: Andrew Leech <[email protected]> Signed-off-by: Andrew Leech <[email protected]>
1 parent 0571490 commit f8517db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ repos:
2525
name: Spellcheck for changed files (codespell)
2626
additional_dependencies:
2727
- tomli
28+
- repo: https://github.com/fsfe/reuse-tool
29+
# Version should be kept in sync with .github/workflows/spdx_compliance.yml
30+
rev: v5.0.2
31+
hooks:
32+
- id: reuse
33+
name: SPDX license compliance check (reuse)

0 commit comments

Comments
 (0)