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) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index ac2e415f5..9d4872657 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -853,6 +853,7 @@ class XQueryCommentStyle(CommentStyle): ".dockerignore": PythonCommentStyle, ".earthlyignore": PythonCommentStyle, ".editorconfig": PythonCommentStyle, + ".envrc": PythonCommentStyle, ".empty": EmptyCommentStyle, ".eslintignore": PythonCommentStyle, ".eslintrc": UncommentableCommentStyle, @@ -885,6 +886,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,