From 5e1679ea0955986b4590c9a027c75a7c784c6ba5 Mon Sep 17 00:00:00 2001 From: Alex Dewar Date: Wed, 24 Jul 2024 11:00:15 +0100 Subject: [PATCH] Add codespell to template's pre-commit config --- {{ cookiecutter.project_slug }}/.codespell_ignore.txt | 0 {{ cookiecutter.project_slug }}/.pre-commit-config.yaml | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 {{ cookiecutter.project_slug }}/.codespell_ignore.txt diff --git a/{{ cookiecutter.project_slug }}/.codespell_ignore.txt b/{{ cookiecutter.project_slug }}/.codespell_ignore.txt new file mode 100644 index 0000000..e69de29 diff --git a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml index e0de92c..3ca5b9e 100644 --- a/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml +++ b/{{ cookiecutter.project_slug }}/.pre-commit-config.yaml @@ -31,3 +31,8 @@ repos: rev: v0.40.0 hooks: - id: markdownlint-fix + - repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell + args: [-L, .codespell_ignore.txt]