diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fae428f4..c6077925 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,6 +58,17 @@ repos: language: system pass_filenames: false verbose: true + - repo: https://github.com/codespell-project/codespell + rev: v2.2.2 + hooks: + - id: codespell + additional_dependencies: [tomli] + args: ["--toml", "python/pyproject.toml"] + exclude: | + (?x)^( + .*test.*| + ^CHANGELOG.md$ + ) default_language_version: python: python3 diff --git a/python/pyproject.toml b/python/pyproject.toml index f36ad1c4..6dc651e6 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -100,3 +100,6 @@ cmake.minimum-version = "3.26.4" ninja.make-fallback = true sdist.reproducible = true wheel.packages = ["ucxx"] + +[tool.codespell] +ignore-words-list = "cancelation,inflight"