diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9349f45cd..647bf76c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,6 +42,8 @@ repos: rev: v2.3.0 hooks: - id: codespell + additional_dependencies: [tomli] + args: ["--toml", "pyproject.toml"] exclude: | (?x)^( pyproject.toml| diff --git a/pyproject.toml b/pyproject.toml index b99bf800c..e6fec0296 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,10 +3,10 @@ [tool.codespell] # note: pre-commit passes explicit lists of files here, which this skip file list doesn't override - # this is only to allow you to run codespell interactively -skip = "./pyproject.toml,./.git,./.github,./cpp/build,.*egg-info.*,./.mypy_cache,./benchmarks/utilities/cxxopts.hpp" +skip = "./.git,./build,./python/_skbuild/,.*egg-info.*,./.mypy_cache,./pyproject.toml,./benchmarks/utilities/cxxopts.hpp" # ignore short words, and typename parameters like OffsetT ignore-regex = "\\b(.{1,4}|[A-Z]\\w*T)\\b" -ignore-words-list = "inout,thirdparty" +ignore-words-list = "thirdparty,couldn" builtin = "clear" quiet-level = 3