From 0eac702b0101af040fad5692a701cbfe66c62f05 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Wed, 10 Apr 2024 18:53:10 +1000 Subject: [PATCH] Add codespell pre-commit (#73) * Add codespell pre-commit * Add words to codespell dictionary --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1b4e2b..3042a4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,3 +36,9 @@ repos: Fix the merge conflicts manually and remove the .rej files. language: fail files: '.*\.rej$' + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + additional_dependencies: + - tomli diff --git a/pyproject.toml b/pyproject.toml index 0eec156..ede152c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,3 +143,6 @@ skip = [ "docs/references.md", "docs/notebooks/example.ipynb", ] + +[tool.codespell] +ignore-words-list = "theis,coo,homogenous"