From 247fa49407d57a5bb68816641bc9aa120134d327 Mon Sep 17 00:00:00 2001 From: John Moon Date: Tue, 2 Jul 2024 14:48:13 -0700 Subject: [PATCH] Add Earthfile and .earthlyignore support Add support for the Earthly build system files (`Earthfile` and `.earthlyignore`). --- CHANGELOG.md | 1 + src/reuse/comment.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0626b925e..d89dcb4bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,7 @@ This changeset also contains the changes of v3.1.0a1. - BATS test (`.bats`) (#997) - Octave/Matlab (`.m`) (#604) - VHDL(`.vhdl`) (#564) + - Earthly files (`Earthfile` and `.earthlyignore`) (#1024) - Added comment styles: - `man` for UNIX Man pages (`.man`) (#954) - Added `--lines` output option for `lint`. (#956) diff --git a/src/reuse/comment.py b/src/reuse/comment.py index 360c8f03a..7139feba1 100644 --- a/src/reuse/comment.py +++ b/src/reuse/comment.py @@ -847,6 +847,7 @@ class XQueryCommentStyle(CommentStyle): ".clang-tidy": PythonCommentStyle, ".coveragerc": PythonCommentStyle, ".dockerignore": PythonCommentStyle, + ".earthlyignore": PythonCommentStyle, ".editorconfig": PythonCommentStyle, ".empty": EmptyCommentStyle, ".eslintignore": PythonCommentStyle, @@ -879,6 +880,7 @@ class XQueryCommentStyle(CommentStyle): "Containerfile": PythonCommentStyle, "Dockerfile": PythonCommentStyle, "Doxyfile": PythonCommentStyle, + "Earthfile": PythonCommentStyle, "Gemfile": PythonCommentStyle, "go.mod": CppCommentStyle, "go.sum": UncommentableCommentStyle,