From fccd967367d0de6110d90392dde485c173d99304 Mon Sep 17 00:00:00 2001 From: Veit Schiele Date: Wed, 2 Oct 2024 00:02:20 +0200 Subject: [PATCH] :wrench: Add codespell --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 154b08b..f00624a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,6 +38,11 @@ repos: args: [--line-length=79] additional_dependencies: - black + - repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell + args: [--toml pyproject.toml] - repo: local hooks: - id: linkcheck diff --git a/pyproject.toml b/pyproject.toml index c274c09..20c275e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,8 +31,12 @@ docs = [ dev = [ "pyviz-tutorial[docs]", "pre-commit", + "codespell", ] [project.urls] "Homepage" = "https://github.com/veit/pyviz-tutorial/" "Bug Tracker" = "https://github.com/veit/pyviz-tutorial/issues" + +[tool.codespell] +skip = "*.ipynb, *.rst, *.svg, ./pyviz_tutorial.egg-info/*"