From 04cff09fd4c7c81f597ff934c49b8fc57cabeae5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 13 Aug 2024 09:04:44 +0200 Subject: [PATCH 1/2] 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 533bc3c0..a4b552f6 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/2] 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 a4b552f6..cc6ba954 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,