From 1bfec0e7c948aa3901e1cdf127b0a31b9edc1212 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 25 May 2025 07:58:13 -0400 Subject: [PATCH] chore: move codespell config to pyproject.toml (#2409) * chore: move codespell config to pyproject.toml Signed-off-by: Henry Schreiner * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Henry Schreiner Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- pyproject.toml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2705e71a..2304b31f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -75,7 +75,7 @@ repos: rev: v2.4.1 hooks: - id: codespell - args: ["-L", "sur,assertin,hep", "-w"] + args: ["-w"] exclude: ^docs/working-examples\.md$ # Autogenerated diff --git a/pyproject.toml b/pyproject.toml index cb5ae27a..601e384e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -231,3 +231,14 @@ ignore = ["PC170", "PP303"] [tool.check-wheel-contents] ignore = ["W002"] # constraints-*.txt are allowed to be duplicates of one another + +[tool.codespell] +ignore-words-list = [ + "sur", + "assertin", +] +skip = [ + '^docs/working-examples\.md', + 'htmlcov', + 'all_known_setup.yaml', +]