PyCQA / autoflake

Removes unused imports and unused variables as reported by pyflakes

Home Page:https://pypi.org/project/autoflake/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot pass pyproject.toml to --config argument

dolfinus opened this issue · comments

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?