From 1c88b0a734142cfc05114ad2ca0794c565294fb9 Mon Sep 17 00:00:00 2001 From: jirka Date: Tue, 7 May 2024 19:32:10 +0200 Subject: [PATCH] use codespell --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 551d8be34..23272bc25 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,10 @@ repos: +- repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell + additional_dependencies: [tomli] + - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.4.3 hooks: diff --git a/pyproject.toml b/pyproject.toml index ee54edb78..7fc809a6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,3 +78,8 @@ lint.unfixable = [ "test/**" = [ "B018", # useless-expression ] + +[tool.codespell] +#skip = '*.po,*.ts,./src/3rdParty,./src/Test' +#count = true +quiet-level = 3 \ No newline at end of file