]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
completion: add reuse ignore comments
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 8 Oct 2025 14:31:05 +0000 (16:31 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 8 Oct 2025 14:52:06 +0000 (16:52 +0200)
Otherwise reuse will pick up this license as license for the file and complain
about the extra whitespace.

mkosi/completion.py

index 3f2fd3455ae8e0cf358609bcd40113bfe1e5335b..d35418e2c03d91154393e2de4b77527519511a35 100644 (file)
@@ -147,7 +147,9 @@ def finalize_completion_bash(options: list[CompletionItem], resources: Path) ->
 
 def finalize_completion_fish(options: list[CompletionItem], resources: Path) -> str:
     with io.StringIO() as c:
+        # REUSE-IgnoreStart
         c.write("# SPDX-License-Identifier: LGPL-2.1-or-later\n\n")
+        # REUSE-IgnoreEnd
         c.write("complete -c mkosi -f\n")
 
         c.write("complete -c mkosi -n '__fish_is_first_token' -a \"")