chore(deps): update pre-commit hook fsfe/reuse-tool to v6 #247
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to
mend[bot].This notice will be removed on 2025-10-07.
This PR contains the following updates:
v5.1.1->v6.0.0Note: The
pre-commitmanager in Renovate is not supported by thepre-commitmaintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
fsfe/reuse-tool (fsfe/reuse-tool)
v6.0.0Compare Source
This release contains a lot of refactoring regarding the parsing of files. The
most impactful details are that
reuse lintnow searches every file in itsentirety for REUSE information, tries to detect each file's encoding, and no
longer breaks when invalid SPDX License Expressions are detected.
Because files are now read in their entireties instead of just the first 4 KiB,
you may need to add
REUSE-IgnoreStartandREUSE-IgnoreEndtags to get rid offalse positives that were previously too deep into files for
reuseto detect.For package maintainers: This release removes, adds, and changes
dependencies. It merits running
git diff v5.1.1..v6.0.0 pyproject.tomlandreading the 'Changed' section of this change log to see what changed.
Added
py.typed(#1239).blade.php(#573)reuse lint. Invalid expressions are SPDX License Expressions which are notvalid according to the grammar of the SPDX specification. (#1240)
Changed
reusenow no longer requires a lower majorversion than 4. The requirement is now
>=3.10instead of>=3.10,<4.(#1219)
boolean.boolean. It is now an implicitdependency via
license-expression. (#1240)python-magichas been added, alongside the optionaldependencies
charset-normalizerandchardet. So long as at least one ofthese is installed, the program will work. (#1235)
binaryornothas been removed. (#1235)#1241)
reuse lintnow always searches the entire file for REUSE information.Previously, it only searched the first 4 KiB under most circumstances. (#1229)
(#1235, #1218)
reuse lintpreviously searched for badlicenses in every single file. Now, only bad licenses in
LICENSES/aredetected, which is more in line with the documentation. (#1240)
--yearoption toreuse annotateis now different.Previously, you could define
--year <year>multiple times. Now you can onlydo so once, but the value may be a string containing multiple years or a range
of years. (#1145)
reuse annotate --merge-copyrightsworks more efficiently now, capable ofbetter heuristics to detect years and year ranges. (#1145)
reuse annotate --merge-copyrightsno longer adds spacing around the mergedyear ranges. i.e.
2017-2025, not2017 - 2025. (#1145)Fixed
REUSE information from that file to entirely fail. (#1240)
\r) line endings are now correctly linted.(#1235, #1226)
reuse lintwould read thecontents of an entire file into memory. This no longer happens.
reuse annotatewill still read the entire file into memory. (#1229)lintsubcommand help message. (#1212, #1236).blade.php) hastwo or more components, it would not be correctly recognised. (#573)
REUSE-IgnoreStartis the very first thing that appearsin a file, the subsequent text is not actually ignored. (#1229)
reuse annotateto write to a file, the BOM is preserved if theencoding is UTF-8, UTF-16, or UTF-32. (#1235, #384)
reuse lintare now sorted better. (#1241)speedup of up to 50%, but it may depend on your repository. (#1222, #1223,
#1230, #1241)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.