diff --git a/AUTHORS.rst b/AUTHORS.rst index 96fb3f5a..806150d4 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -150,3 +150,4 @@ Contributors - Kiko Fernandez-Reyes - Charlie Jenkins - Hatzka +- Thomas Gilon diff --git a/changelog.d/added/added-smk.md b/changelog.d/added/added-smk.md new file mode 100644 index 00000000..b1f6b5c9 --- /dev/null +++ b/changelog.d/added/added-smk.md @@ -0,0 +1,2 @@ +Added `.smk`, `Snakefile`, `matplotlibrc` as recognized files / types for +comments. (https://github.com/fsfe/reuse-tool/pull/1206) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index fd86cd6b..ad26255e 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -22,6 +22,7 @@ # SPDX-FileCopyrightText: 2025 AndrĂ¡s Nagy # SPDX-FileCopyrightText: 2025 Kiko Fernandez-Reyes # SPDX-FileCopyrightText: 2025 Hatzka +# SPDX-FileCopyrightText: 2025 Thomas Gilon # # SPDX-License-Identifier: GPL-3.0-or-later @@ -810,6 +811,7 @@ class XQueryCommentStyle(CommentStyle): # Visual Studio solution file, officially uncommentable: ".sln": UncommentableCommentStyle, ".sls": LispCommentStyle, # Scheme Library Source (R6RS) + ".smk": PythonCommentStyle, ".sml": MlCommentStyle, ".soy": CppCommentStyle, ".sps": LispCommentStyle, # Scheme Program Source (R6RS) @@ -920,6 +922,7 @@ class XQueryCommentStyle(CommentStyle): "Makefile": PythonCommentStyle, "MANIFEST.in": PythonCommentStyle, "manifest": PythonCommentStyle, # used by cdist + "matplotlibrc": PythonCommentStyle, "meson.build": PythonCommentStyle, "meson_options.txt": PythonCommentStyle, "poetry.lock": UncommentableCommentStyle, @@ -929,6 +932,7 @@ class XQueryCommentStyle(CommentStyle): "requirements.txt": PythonCommentStyle, "ROOT": MlCommentStyle, "setup.cfg": PythonCommentStyle, + "Snakefile": PythonCommentStyle, "yarn.lock": UncommentableCommentStyle, }