Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,4 @@ Contributors
- Kiko Fernandez-Reyes <[email protected]>
- Charlie Jenkins <[email protected]>
- Hatzka <[email protected]>
- Thomas Gilon <[email protected]>
2 changes: 2 additions & 0 deletions changelog.d/added/added-smk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added `.smk`, `Snakefile`, `matplotlibrc` as recognized files / types for
comments. (https://github.com/fsfe/reuse-tool/pull/1206)
4 changes: 4 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# SPDX-FileCopyrightText: 2025 András Nagy <[email protected]>
# SPDX-FileCopyrightText: 2025 Kiko Fernandez-Reyes <[email protected]>
# SPDX-FileCopyrightText: 2025 Hatzka <[email protected]>
# SPDX-FileCopyrightText: 2025 Thomas Gilon <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand All @@ -929,6 +932,7 @@ class XQueryCommentStyle(CommentStyle):
"requirements.txt": PythonCommentStyle,
"ROOT": MlCommentStyle,
"setup.cfg": PythonCommentStyle,
"Snakefile": PythonCommentStyle,
"yarn.lock": UncommentableCommentStyle,
}

Expand Down
Loading