From 8bedf3882c0b55c5d286c8b7edd12eb26102317e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Tue, 12 May 2026 17:22:18 +0200 Subject: [PATCH] Ignore typos in copyright statements (#2373) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Those lines may contain a first or last name that can be wrongfully detected as typos. Signed-off-by: Kévin Commaille --- .github/_typos.toml | 6 ++++++ changelogs/internal/newsfragments/2373.clarification | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelogs/internal/newsfragments/2373.clarification diff --git a/.github/_typos.toml b/.github/_typos.toml index 3cdecaa3..3594f56b 100644 --- a/.github/_typos.toml +++ b/.github/_typos.toml @@ -3,6 +3,12 @@ extend-exclude = ["/themes", "/attic", "/data-definitions", "*.css", "syntax.scs [default] check-filename = true +extend-ignore-re = [ + # Ignore lines that start with `# Copyright ` (i.e. comments containing a + # copyright statement in YAML files), they may contain a first or last name + # that can be wrongfully detected as typos. + "(?Rm)^#\\s*Copyright\\s.*$", +] [default.extend-identifiers] au1ba7o = "au1ba7o" diff --git a/changelogs/internal/newsfragments/2373.clarification b/changelogs/internal/newsfragments/2373.clarification new file mode 100644 index 00000000..8e0ca87a --- /dev/null +++ b/changelogs/internal/newsfragments/2373.clarification @@ -0,0 +1 @@ +Ignore typos in copyright statements.