Skip to content

Configuration using hierarchical pyproject.toml #3737

@ni2scmn

Description

@ni2scmn

Allow automatic configuration by pyproject.toml in parent folder similar how ruff does it (https://docs.astral.sh/ruff/configuration/#config-file-discovery).

We have some submodules in our main git repo where we configure pre-commit checks centrally in the main repo under pyproject.toml. This however does not work for codespell when running pre-commit in a submodule as the pyproject.toml is only found in the current working directory. As the project is potentially at varying locations a fixed link to the config via '--toml' does not seem feasible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions