Skip to content

Cannot pass pyproject.toml to --config argument #283

@dolfinus

Description

@dolfinus

autoflake without passing path for any config file tries to parse both pyproject.toml and setup.cfg:
https://github.com/PyCQA/autoflake/blob/v2.2.1/autoflake.py#L1211

But autoflake --config some.file can handle only setup.cfg format:
https://github.com/PyCQA/autoflake/blob/v2.2.1/autoflake.py#L1255

Is it possible to add check for file type by its extension?

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