From 986cef5141963534b72f94502c16f0fedc67aa10 Mon Sep 17 00:00:00 2001 From: David Douard <david.douard@sdfa3.org> Date: Tue, 5 Dec 2023 10:48:12 +0100 Subject: [PATCH] codespell: ignore the word 'mor' (stands for 'missing object reference') --- .pre-commit-config.yaml | 5 ++++- pyproject.toml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8957bec..4e52b12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,9 +27,13 @@ repos: hooks: - id: codespell name: Check source code spelling + additional_dependencies: + - tomli stages: [commit] - id: codespell name: Check commit message spelling + additional_dependencies: + - tomli stages: [commit-msg] - repo: local @@ -41,4 +45,3 @@ repos: pass_filenames: false language: system types: [python] - diff --git a/pyproject.toml b/pyproject.toml index 111f89c..01712a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,3 +54,6 @@ ensure_newline_before_comments = true line_length = 88 force_sort_within_sections = true known_first_party = ['swh'] + +[tool.codespell] +ignore-words-list = "mor" -- GitLab