Skip to content

Commit b81194c

Browse files
authored
Merge pull request #1061 from bpeetz/main
Add `.envrc` and `flake.lock` extensions
2 parents f2191f5 + f24b453 commit b81194c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Added `.envrc` (Python) and `.flake.lock` (uncommentable) as recognised file
2+
types for comments. (#1061)

src/reuse/comment.py

+2
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ class XQueryCommentStyle(CommentStyle):
853853
".dockerignore": PythonCommentStyle,
854854
".earthlyignore": PythonCommentStyle,
855855
".editorconfig": PythonCommentStyle,
856+
".envrc": PythonCommentStyle,
856857
".empty": EmptyCommentStyle,
857858
".eslintignore": PythonCommentStyle,
858859
".eslintrc": UncommentableCommentStyle,
@@ -885,6 +886,7 @@ class XQueryCommentStyle(CommentStyle):
885886
"Dockerfile": PythonCommentStyle,
886887
"Doxyfile": PythonCommentStyle,
887888
"Earthfile": PythonCommentStyle,
889+
"flake.lock": UncommentableCommentStyle, # is a JSON file
888890
"Gemfile": PythonCommentStyle,
889891
"go.mod": CppCommentStyle,
890892
"go.sum": UncommentableCommentStyle,

0 commit comments

Comments
 (0)