Skip to content

Update pre-commit hook fsfe/reuse-tool to v5#14

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/fsfe-reuse-tool-5.x
Closed

Update pre-commit hook fsfe/reuse-tool to v5#14
renovate[bot] wants to merge 1 commit intomainfrom
renovate/fsfe-reuse-tool-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 6, 2026

This PR contains the following updates:

Package Type Update Change
fsfe/reuse-tool repository major v2.1.0v5.1.1

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers 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)

v5.1.1

Compare Source

Fixed
  • Fixed repository file detection using jujutsu versions 0.19.0 or later.
    (#​1191)
  • Fixed a bug that caused not all strings to be marked translatable. This bug
    was introduced in v5.0.0. Strings that were already translated before the
    release of v5.0.0 are now translated again. (#​1216)

v5.1.0

Compare Source

Added
  • Added new file extensions:
  • Added --json flag to the supported-licenses subcommand. (#​1187)
Changed
  • Revert Cargo.lock to uncommentable. (#​1169)
  • reuse annotate previously would insert a newline after a header, which is
    not always a desirable behavior. Instead of inserting a newline,
    reuse annotate will now respect the existing whitespace of the file where
    the header is being placed. When the license header is being added to a file
    for the first time, a space will be added after the license, but subsequent
    updates to the header will leave the whitespace alone. (#​1136)
  • Updated spdx-license-list-data to v3.27.0.

v5.0.2

Compare Source

Fixed
  • The release date for the v5.0.0 entry in the change log was wrong.

v5.0.1

Compare Source

Fixed
  • Fix readthedocs build.

v5.0.0

Compare Source

This is a big release for a small change set. With this release, the tool
becomes compatible with
REUSE Specification 3.3, which is a very
subtly improved release of the much bigger version 3.2.

Added
  • More file types are recognised:
  • Added lint-file subcommand to enable running lint on specific files. (#​1055)
  • Added shell completion via click. (#​1084)
  • Added Jujutsu VCS support. (#​1051)
  • Added new copyright prefixes spdx-string, spdx-string-c, and
    spdx-string-symbol. (#​979)
  • Support for Python 3.13. (#​1092)
Changed
  • Bumped REUSE Specification version to
    version 3.3. (#​1069)

  • Switched from argparse to click for handling the CLI. The CLI should still
    handle the same, with identical options and arguments, but some stuff changed
    under the hood. (#​1084)

    Find here a small list of differences:

    • -h is no longer shorthand for --help.
    • --version now outputs "reuse, version X.Y.Z", followed by a licensing
      blurb on different paragraphs.
    • Some options are made explicitly mutually exclusive, such as annotate's
      --skip-unrecognised and --style, and download's --output and
      --all.
    • Subcommands which take a list of things (files, license) as arguments, such
      as annotate, lint-file, or download, now also allow zero arguments.
      This will do nothing, but can be useful in scripting.
    • annotate and lint-file now also take directories as arguments. This will
      do nothing, but can be useful in scripting.
  • Changes to comment styles:

    • Allow Python-style comments in Cargo.lock files. (#​1060)
    • .s files (GNU as) now use the C comment style. (#​1034)
    • .ld files (GNU ld) now use the C comment style. (#​1034)
  • REUSE.toml no longer needs a licensing header. (#​1042)

  • .gitkeep is no longer ignored, because this is not defined in the
    specification. However, if .gitkeep is a 0-size file, it will remain ignored
    (because 0-size files are ignored). (#​1043)

  • If REUSE.toml is ignored by VCS, the linter no longer parses this file.
    (#​1047)

  • SPDX license and exception list updated to v3.25.0.

  • More LICENSE and COPYING-like files are ignored. Now, such files suffixed
    by -anything are also ignored, typically something like LICENSE-MIT. Files
    with the UK spelling LICENCE are also ignored. (#​1041)

Removed
  • Python 3.8 support removed. (#​1080)
Fixed
  • In REUSE.toml, fixed the globbing of a single asterisk succeeded by a slash
    (e.g. directory-*/foo.py). The glob previously did nothing. (#​1078)
  • Increased the minimum requirement of attrs to >=21.3. Older versions do
    not import correctly. (#​1044)
  • Performance greatly improved for projects with large directories ignored by
    VCS. (#​1047)
  • Performance slightly improved for large projects. (#​1047)
  • The plain output of lint has been slightly improved, getting rid of an
    errant newline. (#​1091)
  • reuse annotate --merge-copyrights now works more reliably with copyright
    prefixes. This still needs some work, though. (#​979)
  • In some scenarios, where a user has multiple REUSE.toml files and one of
    those files could not be parsed, the wrong REUSE.toml was signalled as being
    unparseable. This is now fixed. (#​1047)
  • Fixed a bug where REUSE.toml did not correctly apply its annotations to
    files which have an accompanying .license file. (#​1058)
  • When running reuse download SPDX-IDENTIFIER+, download SPDX-IDENTIFIER
    instead. This also works for reuse download --all. (#​1098)

v4.0.3

Compare Source

Fixed
  • Increased the minimum requirement of attrs to >=21.3. Older versions do
    not import correctly. (#​1044)

v4.0.2

Compare Source

Fixed
  • Repaired a bug that would cause a crash when running
    annotate --merge-copyrights on a file that does not yet have a year in the
    copyright statement. This bug was introduced in v4.0.1. (#​1030)

v4.0.1

Compare Source

Fixed
  • Make sure that Read the Docs can compile the documentation. This necesitated
    updating poetry.lock. (#​1028)

v4.0.0

Compare Source

This release of REUSE implements the new
REUSE Specification v3.2. It adds the
REUSE.toml file format as a replacement for .reuse/dep5. The new format is
easier to write and parse, is better at disambiguating certain corner cases, and
is more flexible for customisation and future additions.

To convert your existing .reuse/dep5 to REUSE.toml, you can simply use the
reuse convert-dep5 command.

Alongside the REUSE.toml feature is a wealth of other improvements.
reuse lint --lines may be especially interesting for CI workflows, as well as
the fact that the amount of PendingDeprecationWarnings has been drastically
reduced now that the information aggregation behaviour of .reuse/dep5 is
explicitly defined in the specification.

The tool has also been made easier to use with the addition of man pages. The
man pages can be found online at https://reuse.readthedocs.io/en/stable/man/.
Your distribution's packager will need to make them accessible via
man reuse(1). Unfortunately, man pages cannot be made accessible via Python's
packaging, although the full documentation (including man pages) is included in
the sdist.

This changeset also contains the changes of v3.1.0a1.

Added
  • Added support for REUSE.toml. (#​863)
  • Added reuse convert-dep5 to convert .reuse/dep5 to REUSE.toml. (#​863)
  • Man pages added for all reuse commands. Distribution maintainers might wish
    to distribute the (Sphinx-built) man pages. (#​975)
  • More file types are recognised:
  • Added comment styles:
    • man for UNIX Man pages (.man) (#​954)
  • Added --lines output option for lint. (#​956)
  • Treat % !TEX and % !BIB as shebangs in TeX and BibTeX files, respectively
    (#​971)
  • Support alternate spelling --skip-unrecognized. (#​974)
  • In annotate, rename --copyright-style to --copyright-prefix. The former
    parameter is still supported. (#​973)
  • Support alternate spelling --skip-unrecognized (#​974)
  • cpp and cppsingle style shorthands (see changes). (#​941)
Changed
  • Updated SPDX resources to 3.24.0. (#​994)
  • Updated REUSE specification version to 3.2. (#​994)
  • .s files now use the Python comment style as per GNU Assembler (gas). (#​928)
  • Previously, any file that begins with COPYING or LICENSE was ignored. This
    has been changed. Now, files like COPYING_README are no longer ignored, but
    COPYING and COPYING.txt are still ignored (in other words: exact matches,
    or COPYING + a file extension). Idem ditto for LICENSE. (#​886)
  • Dependencies added:
  • Reorganised the way that c, css, and csingle styles work. (#​941)
    • c used to support multi-line comments; it now only supports multi-line
      /* */ comments. This is identical to the old css style.
    • cpp has been added, which supports multi-line /* */ comments and
      single-line // comments. This is identical to the old c style.
    • csingle has been renamed to cppsingle, and it supports only single-line
      // comments.
Deprecated
  • .reuse/dep5 is marked deprecated. reuse convert-dep5 will help you switch
    to REUSE.toml. (#​863)
Removed
  • The PendingDeprecationWarning for the aggregation of information between DEP5
    and the contents of a file has been removed. This behaviour is now explicitly
    specified in REUSE Specification v3.2. (#​1017, related to #​779)
  • reuse init removed. (#​863)
  • csingle and css style shorthands (see changes). (#​941)
Fixed
  • The datetime value for Created: was wrongly formatted since 3.0.0. It now
    returns a correctly formatted ISO 8601 date again. (#​952)
  • Repaired the behaviour of reuse download where being inside of a LICENSES/
    directory should not create a deeper LICENSES/LICENSES/ directory. (#​975)
  • Support annotating a file that contains only a shebang. (#​965)
  • Add CONTRIBUTING.md to the sdist. (#​987)
  • In reuse spdx, fixed the output to be more compliant by capitalising
    SPDXRef-Document DESCRIBES appropriately. (#​1013)

v3.0.2

Compare Source

Fixed
  • annotate's '--style now works again when used for a file with an
    unrecognised extension. (#​909)

v3.0.1

Compare Source

Fixed
  • .qrc and .ui now have the HTML comment style instead of being marked
    uncommentable. (#​896)
  • This reverts behaviour introduced in v3.0.0: the contents of uncommentable
    files are scanned for REUSE information again. The contents of binary files
    are not. (#​896)

v3.0.0

Compare Source

This release contains a lot of small improvements and changes without anything
big per se. Rather, it is made in advance of a release which will contain a
single feature: REUSE.toml, a
replacement for .reuse/dep5. .reuse/dep5 will still be supported as a
deprecated feature for some time.

That future 3.1 release will have some alpha testing in advance.

Added
  • Implement handling LicenseRef in download and init. (#​697)
  • Declared support for Python 3.12. (#​846)
  • More file types are recognised:
  • Added comment styles:
    • csingle for Zig (.zig) and Hare (.ha) (#​889)
  • Display recommendations for steps to fix found issues during a lint. (#​698)
  • Add support for Pijul VCS. Pijul support is not added to the Docker image.
    (#​858)
  • When running annotate on a file with an unrecognised file path, the tool
    currently exits early. To automatically create a .license file for
    unrecognised files, --fallback-dot-license has been added. (#​823, #​851,
    #​853, #​859; this took a while to get right.)
  • Ignore .sl directory as used by Sapling SCM.
    (#​867)
Changed
  • Alpine Docker image now uses 3.18 as base. (#​846)
  • The Git submodule detection was made less naïve. Where previously it detected
    a directory with a .git file as a submodule, it now uses the git command to
    detect submodules. This helps detect (quoted from Git man page)
    "[repositories] that were cloned independently and later added as a submodule
    or old setups", which "have the submodule's git directory inside the submodule
    instead of embedded into the superproject's git directory". (#​687)
  • No longer scan binary or uncommentable files for their contents in search of
    REUSE information. (#​825)
  • --force-dot-license and --skip-unrecognised are now mutually exclusive on
    annotate. (#​852)
  • No longer create and publish -extra Docker images. The openssh-client
    package is now in the main image. (#​849)
  • No longer create and publish dev Docker images. (#​849)
  • The -debian Docker image is now based off debian:12-slim. It used to be
    based on the python:slim image, which used debian:slim under the hood. (#​849)
Removed
  • Removed deprecated --explicit-license. (#​851)
  • Removed deprecated addheader. (#​851)
  • No longer depend on sphinx-autodoc-typehints for documentation. (#​772)
Fixed
  • Syntax errors in .reuse/dep5 now have better error handling. (#​841)
  • Reduced python-debian minimum version to 0.1.34. (#​808)
  • Fix issue in annotate where --single-line and --multi-line would not
    correctly raise an error with an incompatible comment style. (#​853)
  • Fix parsing existing copyright lines when they do not have a year (#​861)
  • Better handling of Lisp comment styles. Now, any number of ";" characters is
    recognised as the prefix to a Lisp comment, and ";;;" is used when inserting
    comment headers, as per
    https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html.
    (#​874)

Configuration

📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies label Mar 6, 2026
@renovate renovate bot force-pushed the renovate/fsfe-reuse-tool-5.x branch 4 times, most recently from 1c964ed to a5e0911 Compare March 11, 2026 13:55
@renovate renovate bot force-pushed the renovate/fsfe-reuse-tool-5.x branch 2 times, most recently from 1885893 to 427f8fb Compare March 11, 2026 14:37
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/fsfe-reuse-tool-5.x branch from 427f8fb to 5ab4b3c Compare March 11, 2026 14:41
@abompard abompard closed this Mar 11, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Mar 11, 2026

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/fsfe-reuse-tool-5.x branch March 11, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant