Skip to content

Resolve pylintrc.toml in pylint 3.x #9228

@matejsp

Description

@matejsp

Current problem

We are trying to migrate to toml format for pylintrc however if we use
pylintrc it does not detect toml format.

We don't want to have couple of hundrets of lines in pyproject.toml that's why we would like to preserve the external configuration.

Desired solution

Based on this:
https://pylint.pycqa.org/en/latest/user_guide/usage/run.html

Have an option to resolve pylint.toml or pylintrc.toml in addition to pylintrc and .pylintrc.
One alternative is to have the same toml detection as for argument --rcfile.

Current workaround:
PYLINTRC=pylintrc.toml pylint -v
pylint --rcfile=pylintrc.toml -v

Both options are correctly detecting toml files.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ConfigurationRelated to configurationHelp wanted 🙏Outside help would be appreciated, good for new contributorsNeeds PRThis issue is accepted, sufficiently specified and now needs an implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions