From 13c46785159b6865eac8a1ec0e8188c079d487d0 Mon Sep 17 00:00:00 2001 From: Yurii Motov <109919500+YuriiMotov@users.noreply.github.com> Date: Fri, 19 Jun 2026 22:43:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20pre-commit=20hook=20to=20c?= =?UTF-8?q?atch=20typos=20(#2317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7889ad84..df951352 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,11 @@ repos: )$ - id: trailing-whitespace exclude: ^frontend/src/client/.* + - repo: https://github.com/crate-ci/typos + rev: bbaefadf97b0ec5fdc942684b647f1a6ab250274 # v1.46.0 + hooks: + - id: typos + args: [--force-exclude] - repo: local hooks: - id: local-biome-check diff --git a/pyproject.toml b/pyproject.toml index d243c54e..63ca709c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,3 +9,25 @@ dev = [ github-actions = [ "smokeshow >=0.5.0", ] + +[tool.typos.files] +extend-exclude = [ + "img/", + "uv.lock", + "bun.lock", + "backend/coverage/", + "backend/htmlcov/", + "frontend/dist/", + "frontend/public/assets/images/", +] + +[tool.typos.default] +extend-ignore-re = [ + # GitHub usernames in @mentions + "@[a-zA-Z0-9](?:-?[a-zA-Z0-9])*", + # Name of the package in the PR title + "Bump certifi ", +] + +[tool.typos.default.extend-identifiers] +alls = "alls"