Skip to content

Commit

Permalink
Merge pull request #1061 from bpeetz/main
Browse files Browse the repository at this point in the history
Add `.envrc` and `flake.lock` extensions
  • Loading branch information
carmenbianca authored Oct 10, 2024
2 parents f2191f5 + f24b453 commit b81194c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/added/comment-flake-envrc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added `.envrc` (Python) and `.flake.lock` (uncommentable) as recognised file
types for comments. (#1061)
2 changes: 2 additions & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ class XQueryCommentStyle(CommentStyle):
".dockerignore": PythonCommentStyle,
".earthlyignore": PythonCommentStyle,
".editorconfig": PythonCommentStyle,
".envrc": PythonCommentStyle,
".empty": EmptyCommentStyle,
".eslintignore": PythonCommentStyle,
".eslintrc": UncommentableCommentStyle,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b81194c

Please sign in to comment.