From da407bb66259eef6a7273a3390af491d342c55c9 Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 10 May 2025 17:34:32 +0200 Subject: [PATCH 1/2] chore: add codespell pre-commit hook - Add codespell pre-commit hook to check for common misspellings - Configure codespell to skip specific files and directories - Add codespell configuration in pyproject.toml --- .pre-commit-config.yaml | 7 +++++++ pyproject.toml | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1be9c82..3b4f104 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,13 @@ repos: entry: TODO types: [text] exclude: ^(.pre-commit-config.yaml|.github/workflows/test.yml)$ +- repo: https://github.com/codespell-project/codespell + rev: v2.4.1 + hooks: + - id: codespell + args: ["--skip", "aider/website/docs/languages.md"] + additional_dependencies: + - tomli - repo: https://github.com/PyCQA/flake8 rev: 7.2.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index fe5f7ca..b5b853e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,3 +118,13 @@ log_level = "DEBUG" python_files = ["test_*.py"] testpaths = ["tests"] addopts = "-v --tb=short -rxs -W=error --durations=0 --cov=shtab --cov-report=term-missing --cov-report=xml" + +[tool.codespell] +ignore-words-list = """ +fo +""" +skip = """./.*,*/.metadata,*.xml,configure,*Makefile*,config*,*.m4,man.html""" +quiet-level=2 +ignore-regex = '\\[fnrstv]' +builtin = "clear,rare,informal" + From 88329afa47572a1a4bfe169506e7b2b1200cbdee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 10 May 2025 15:36:04 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b5b853e..6d4a322 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -127,4 +127,3 @@ skip = """./.*,*/.metadata,*.xml,configure,*Makefile*,config*,*.m4,man.html""" quiet-level=2 ignore-regex = '\\[fnrstv]' builtin = "clear,rare,informal" -