This is an automated email from the ASF dual-hosted git repository.

johnbam pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 98279f37a0 Makefile: Add createwordlist target to regenerate the 
ignored words list (#436)
98279f37a0 is described below

commit 98279f37a0d6fd955cba97478f2b21deb7b87e55
Author: John Bampton <[email protected]>
AuthorDate: Sun Nov 16 11:05:57 2025 +1000

    Makefile: Add createwordlist target to regenerate the ignored words list 
(#436)
    
    codespell is a popular Python package:
    
    https://pypi.org/project/codespell/
    
    We already run codespell with pre-commit.
    
    This addition to the Makefile is for tooling and developer productivity.
    
    Helpful when doing a local cleanup of the spelling
---
 Makefile             | 6 +++++-
 requirements-dev.txt | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 2c95cf3dcb..bf4dd2dbfb 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
 PYTHON := $(shell command -v python || command -v python3 || echo python)
 PIP := $(PYTHON) -m pip
 
-.PHONY: check checkinstall checkupdate install
+.PHONY: check checkinstall checkupdate createwordlist install
 
 check: checkinstall
        @echo "Running pre-commit checks..."
@@ -32,6 +32,10 @@ checkupdate:
        @echo "Updating pre-commit hooks..."
        pre-commit autoupdate
 
+createwordlist: install
+       @echo "Regenerating the ignored words list codespell.txt"
+       codespell --skip='./extras' | cut -f2 -d' ' | tr A-Z a-z | sort | uniq 
> .github/linters/codespell.txt
+
 install:
        @echo "Installing dependencies..."
        @if [ -f requirements-dev.txt ]; then \
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 416634f528..72c7776316 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1 +1,2 @@
+codespell
 pre-commit

Reply via email to