From d41647380f6627d00143f2bee9931be79e001c69 Mon Sep 17 00:00:00 2001 From: Jirka Date: Fri, 22 Sep 2023 19:10:45 +0200 Subject: [PATCH] configure --- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d865c0281e0..ae2a85c8969 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,6 +44,12 @@ repos: args: [--py38-plus] name: Upgrade code + - repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell + additional_dependencies: [tomli] + - repo: https://github.com/PyCQA/docformatter rev: v1.7.5 hooks: diff --git a/pyproject.toml b/pyproject.toml index cc7e635dcd1..2c3c71ffed0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,14 @@ wrap-summaries = 120 wrap-descriptions = 120 blank = true +[tool.codespell] +#skip = '*.py' +# comma separated list of words; waiting for: +# https://github.com/codespell-project/codespell/issues/2839#issuecomment-1731601603 +ignore-words-list = "ROUGE, MAPE, fpr" +count = '' +quiet-level = 3 + [tool.ruff] line-length = 120