From 64de7111ea73b13e90a135bcac63a77bd04f6e35 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Fri, 29 May 2026 21:41:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20pre-commit=20hook=20to=20c?= =?UTF-8?q?atch=20typos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92cbcc0..661aad5 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 81983b0..1912188 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,3 +122,14 @@ source-includes = [ [tool.ty.terminal] error-on-warning = true + +[tool.typos.files] +extend-exclude = [ + "release-notes.md", + "uv.lock", + "coverage/", + "htmlcov/", +] + +[tool.typos.default.extend-identifiers] +alls = "alls"