Skip to content

Support for pyproject.toml (and cargo.toml) #1930

@kdeldycke

Description

@kdeldycke

In addition to have lychee search for configuration in the .lycheeignore and lychee.toml file, I would love to have the possibility of adding lychee-specific configuration into a pyproject.toml file.

That way I can have all the configuration of the tools I use for my Python project nicely arranged in a single pyproject.toml file. For that to work, lychee-specific configuration needs to be put under its own section, like [tool.lychee].

I know lychee is not a Python-specific project, and is not written in Python. But that does not prevent it to be nice to the Python ecosystem.

A good example is the typos utility, which is written in Rust, but is supporting reading its configuration both from a pyproject.toml and a cargo.toml file:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions