From 04cff09fd4c7c81f597ff934c49b8fc57cabeae5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 13 Aug 2024 09:04:44 +0200 Subject: [PATCH 1/3] Add `.envrc` comment detection --- src/reuse/comment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 533bc3c0c..a4b552f67 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -851,6 +851,7 @@ class XQueryCommentStyle(CommentStyle): ".dockerignore": PythonCommentStyle, ".earthlyignore": PythonCommentStyle, ".editorconfig": PythonCommentStyle, + ".envrc": PythonCommentStyle, ".empty": EmptyCommentStyle, ".eslintignore": PythonCommentStyle, ".eslintrc": UncommentableCommentStyle, From 56e4758f82ee87068e04b69ce78a314001b6a566 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 13 Aug 2024 09:05:46 +0200 Subject: [PATCH 2/3] Add `flake.lock` as uncommentable file --- src/reuse/comment.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index a4b552f67..cc6ba9543 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -884,6 +884,7 @@ class XQueryCommentStyle(CommentStyle): "Dockerfile": PythonCommentStyle, "Doxyfile": PythonCommentStyle, "Earthfile": PythonCommentStyle, + "flake.lock": UncommentableCommentStyle, # is a JSON file "Gemfile": PythonCommentStyle, "go.mod": CppCommentStyle, "go.sum": UncommentableCommentStyle, From f24b453edaeceba3dd0dd3463bf0543e4cd7f963 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 10 Oct 2024 18:24:40 +0200 Subject: [PATCH 3/3] Add change log entry Signed-off-by: Carmen Bianca BAKKER --- changelog.d/added/comment-flake-envrc.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog.d/added/comment-flake-envrc.md diff --git a/changelog.d/added/comment-flake-envrc.md b/changelog.d/added/comment-flake-envrc.md new file mode 100644 index 000000000..1efc46cbf --- /dev/null +++ b/changelog.d/added/comment-flake-envrc.md @@ -0,0 +1,2 @@ +- Added `.envrc` (Python) and `.flake.lock` (uncommentable) as recognised file + types for comments. (#1061)