From 61acb54dd94ff5210178337dd3b3406c52c1b5f2 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Fri, 29 May 2026 18:53:26 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=91=B7=20Add=20pre-commit=20hook=20to?= =?UTF-8?q?=20catch=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0f998f49..a39c21a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,11 @@ repos: - --unsafe - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/crate-ci/typos + rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0 + hooks: + - id: typos + args: [--force-exclude] - repo: local hooks: - id: local-ruff-check diff --git a/pyproject.toml b/pyproject.toml index d4ac1324..88eaaaab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -161,3 +161,16 @@ keep-runtime-typing = true [tool.ty.terminal] error-on-warning = true + +[tool.typos.files] +extend-exclude = [ + "coverage/", + "dist/", + "docs/img/", + "release-notes.md", + "htmlcov/", + "uv.lock", +] + +[tool.typos.default.extend-identifiers] +alls = "alls" From 04be2a55c87a8dbe87ba483f4c01f32a3965f82a Mon Sep 17 00:00:00 2001 From: Yurii Motov <109919500+YuriiMotov@users.noreply.github.com> Date: Fri, 29 May 2026 21:32:43 +0200 Subject: [PATCH 2/2] Apply suggestion from @YuriiMotov --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 88eaaaab..a546c54c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -166,7 +166,6 @@ error-on-warning = true extend-exclude = [ "coverage/", "dist/", - "docs/img/", "release-notes.md", "htmlcov/", "uv.lock",