Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Migrate codespell config to pyproject.toml (#3492)

Jirka Borovecdbcfe2e20624
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ed61a4836..aca506d96 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,7 +23,7 @@ repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- - id: ruff
+ - id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
@@ -31,11 +31,6 @@ repos:
rev: v2.4.1
hooks:
- id: codespell
- args:
- - --ignore-words-list
- - "ans,hist,laf,cofusion"
- - --skip
- - "*.bib,*.ipynb"
- repo: https://github.com/arkinmodi/add-license-header
rev: v2.4.0
diff --git a/pyproject.toml b/pyproject.toml
index 0a8b20cfb..2efda015f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -89,6 +89,10 @@ exclude = ["**/*.md"] # Exclude markdown files from wheel
[tool.hatch.build.targets.sdist]
include = ["kornia/", "LICENSE", "README.md"]
+[tool.codespell]
+ignore-words-list = "ans,hist,laf,cofusion"
+skip = "*.bib,*.ipynb"
+
[tool.ruff]
target-version = "py311"
line-length = 120