Skip to content

Commit

Permalink
Add support for yamllint config file
Browse files Browse the repository at this point in the history
[yamllint](https://yamllint.readthedocs.io/en/stable/configuration.html)
looks for `.yamllint` file before looking for `.yamllint.yaml` or
`.yamllint.yml`.

Signed-off-by: Yongmin Hong <[email protected]>
  • Loading branch information
revi committed Dec 30, 2024
1 parent a7896a5 commit 9a43f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.d/added/added-yamllint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added `.yamllint` (PythonCommentStyle) as recognized file types for comments.
(#1124)
1 change: 1 addition & 0 deletions src/reuse/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ class XQueryCommentStyle(CommentStyle):
".taprc": PythonCommentStyle,
".vimrc": VimCommentStyle,
".zshrc": PythonCommentStyle,
".yamllint": PythonCommentStyle, # is a YAML file
".yarnrc": PythonCommentStyle,
"ansible.cfg": PythonCommentStyle,
"archive.sctxar": UncommentableCommentStyle, # SuperCollider global archive
Expand Down

0 comments on commit 9a43f34

Please sign in to comment.