Skip to content

Instantly share code, notes, and snippets.

@doevelopper
Last active December 21, 2025 17:49
Show Gist options
  • Select an option

  • Save doevelopper/0aeb833a3f06b5af6f8fd2555501ba30 to your computer and use it in GitHub Desktop.

Select an option

Save doevelopper/0aeb833a3f06b5af6f8fd2555501ba30 to your computer and use it in GitHub Desktop.

pip install --user pipx

reuse-annotate:

> pipx run reuse annotate src tests --license=\"GPL-3.0-or-later\" 
    --copyright=\"2015-2023 Artur Weigandt https://wlabs.de/kontakt\" 
    --recursive --exclude-year --copyright-style=\"spdx\""

reuse-lint

> pipx run reuse --suppress-deprecation lint
> pipx run reuse annotate --license MIT <file / folder name> --recursive \
--skip-unrecognised --copyright="grow platform GmbH" --merge-copyrights
pipx run reuse addheader --copyright "2022 Marshall Wace <opensource@mwam.com>" --license "GPL-3.0-only" *.py 

pre-requisites: pipx, reuse(>=v4.0.0, confirmed with v4.0.3)

reuse: update-reuse-templates
	pipx run reuse annotate $(SRCS) --template fkYAML \
		--copyright "Kensuke Fukutani <fktn.dev@gmail.com>" --copyright-style spdx \
		--license MIT --year "2023-2025" --style cppsingle
	pipx run reuse annotate $(TEST_SRCS) $(EXAMPLE_SRCS) $(TOOL_SRCS) --template fkYAML_support \
		--copyright "Kensuke Fukutani <fktn.dev@gmail.com>" --copyright-style spdx \
		--license MIT --year "2023-2025" --style cppsingle
	pipx run reuse lint
	pipx run reuse addheader --recursive single_include include -tjson --license MIT --copyright "Niels Lohmann <https://n…
	pipx run reuse addheader $(TESTS_SRCS) --style=c -tjson_support --license MIT --copyright "Niels Lohmann <https://nloh…
	pipx run reuse lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment