-
Notifications
You must be signed in to change notification settings - Fork 623
Closed
Description
When working on v1.0 version I noticed that the REUSE pre-commit hook runs reuse lint which checks the entire repository, not just staged files. This is pretty annoying as it breaks the normal pre-commit workflow where hooks check what you're committing.
REUSE compatibility origins here #1382
For example, I have an unstaged file test.py
The following files have no copyright and licensing information:
* test.py
# SUMMARY
* [.....]
* Files with copyright information: 751 / 752
* Files with license information: 751 / 752
Unfortunately, your project is not compliant with version 3.3 of the REUSE Specification :-(
LLMs say that since the REUSE pre-commit hook (reuse lint) runs on the whole repository, one should either create a custom local hook (a wrapper bash script that applies reuse lint only to staged files) or remove files before committing. The former seems to me like overengineering for a very common issue that should have a simple solution, while the latter is not a solution at all.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels