Skip to content

[tool.codespell] ignore-words-list ignored in Python 3.9 and 3.10 #3684

Description

@rvernica

I have the following in pyproject.toml:

[tool.codespell]
ignore-words-list = ["iif", "DELETEing"]

In .pre-commit-config.yaml I have:

  - repo: https://github.com/codespell-project/codespell
    rev: "v2.4.1"
    hooks:
      - id: codespell

This works fine when pre-commit is run on Python 3.11 to 3.13. On Python 3.9 and 3.10 I get:

codespell................................................................Failed
- hook id: codespell
- exit code: 65

pyproject.toml:50: iif ==> if
pyproject.toml:50: DELETEing ==> deleting
foo/bar.py:74: DELETEing ==> deleting
foo/taz.py:4: iif ==> if

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions