From 973c672b3af0016857576848eaf97c29d931234d Mon Sep 17 00:00:00 2001 From: Tim Saucer Date: Tue, 31 Mar 2026 12:16:01 -0400 Subject: [PATCH 1/3] Update path so it works well with pre-commit --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d05a64083..256bbc61a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -172,10 +172,10 @@ extend-allowed-calls = ["datafusion.lit", "lit"] [tool.codespell] skip = [ - "./python/tests/test_functions.py", - "./target", + "python/tests/test_functions.py", + "target", "uv.lock", - "./examples/tpch/answers_sf1/*", + "examples/tpch/answers_sf1/*", ] count = true ignore-words-list = ["IST", "ans"] From d4e1128a6eea2cf44d8e28cc5e8245ca7f3054fa Mon Sep 17 00:00:00 2001 From: Tim Saucer Date: Tue, 31 Mar 2026 13:18:10 -0400 Subject: [PATCH 2/3] Prefix path with asterisk so we get matching in both CI and pre-commit --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 256bbc61a..d5a8b5016 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,12 +170,14 @@ extend-allowed-calls = ["datafusion.lit", "lit"] "docs/*" = ["D"] "docs/source/conf.py" = ["ANN001", "ERA001", "INP001"] +# Keep the `*/` prefix in these codespell paths because the CI invocation +# differs from the pre-commit call. [tool.codespell] skip = [ - "python/tests/test_functions.py", - "target", - "uv.lock", - "examples/tpch/answers_sf1/*", + "*/python/tests/test_functions.py", + "*/target", + "*/uv.lock", + "*/examples/tpch/answers_sf1/*", ] count = true ignore-words-list = ["IST", "ans"] From 1337e07db4d01cbee9e85941db9cc8c9b79418eb Mon Sep 17 00:00:00 2001 From: Tim Saucer Date: Tue, 31 Mar 2026 13:23:47 -0400 Subject: [PATCH 3/3] Update paths for codespell --- pyproject.toml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d5a8b5016..327199d1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -170,14 +170,15 @@ extend-allowed-calls = ["datafusion.lit", "lit"] "docs/*" = ["D"] "docs/source/conf.py" = ["ANN001", "ERA001", "INP001"] -# Keep the `*/` prefix in these codespell paths because the CI invocation -# differs from the pre-commit call. +# CI and pre-commit invoke codespell with different paths, so we have a little +# redundancy here, and we intentionally drop python in the path. [tool.codespell] skip = [ - "*/python/tests/test_functions.py", + "*/tests/test_functions.py", "*/target", - "*/uv.lock", - "*/examples/tpch/answers_sf1/*", + "./uv.lock", + "uv.lock", + "*/tpch/answers_sf1/*", ] count = true ignore-words-list = ["IST", "ans"]