From 0bf72c24023d198d78fa65f9892fee624c7332a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Fri, 4 Sep 2026 12:50:25 +0000 Subject: [PATCH 1/2] =?UTF-8?q?xml:=20Fix=20codespell=20typos=20(co-ordina?= =?UTF-8?q?te=20=E2=86=92=20coordinate)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable XML file type in codespell by removing it from exclude_types in .pre-commit-config.yaml. Fix all typos found in XML files: - gui/wxpython/xml/wxgui_items.xml: coordinate (1 occurrence) - gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml: coordinate (2 occurrences) Co-Authored-By: Claude Haiku 4.5 --- .pre-commit-config.yaml | 1 - .../core/testsuite/data/test_toolboxes_menudata_ref.xml | 4 ++-- gui/wxpython/xml/wxgui_items.xml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7f9281d37b..4d69950fa83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -131,4 +131,3 @@ repos: - markdown - python - tex - - xml diff --git a/gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml b/gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml index 39589a08724..d9ced706e9e 100644 --- a/gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml +++ b/gui/wxpython/core/testsuite/data/test_toolboxes_menudata_ref.xml @@ -61,14 +61,14 @@ g.proj -p - Converts co-ordinate system descriptions (i.e. projection information) between various formats (including GRASS format). + Converts coordinate system descriptions (i.e. projection information) between various formats (including GRASS format). general,projection,create project RunMenuCmd g.proj - Prints or modifies GRASS projection information files (in various co-ordinate system descriptions). Can also be used to create new GRASS locations. + Prints or modifies GRASS projection information files (in various coordinate system descriptions). Can also be used to create new GRASS locations. general,projection,create project OnMenuCmd diff --git a/gui/wxpython/xml/wxgui_items.xml b/gui/wxpython/xml/wxgui_items.xml index b94eb310862..ab2aa73c8d2 100644 --- a/gui/wxpython/xml/wxgui_items.xml +++ b/gui/wxpython/xml/wxgui_items.xml @@ -316,7 +316,7 @@ g.proj -p - Converts co-ordinate system descriptions (i.e. projection information) between various formats (including GRASS format). + Converts coordinate system descriptions (i.e. projection information) between various formats (including GRASS format). general,projection,create project,create project From 84b08c25bdcaaaf2a7e3567f9742091f57ce0e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sat, 5 Sep 2026 17:22:37 -0400 Subject: [PATCH 2/2] codespell: Skip SVG files to avoid false positives Enabling codespell for XML also covers SVG (identify tags it as an XML type). gui/images/splash_screen.svg embeds a base64-encoded JPEG that codespell misreads as misspelled words (e.g. "nd", "Ot", "tHt"). Skip *.svg via codespell's own skip list so the exclusion also applies when codespell is run directly, not just through pre-commit. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 52bac496500..1d275ba8afe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,7 @@ skip = [ "utils/fix_typos.sh", "utils/release.yml", # TODO '*.dox', # TODO + "*.svg", # Embedded base64 image data ] [tool.ruff]