Cannot pass pyproject.toml to --config argument
dolfinus opened this issue · comments
Maxim Martynov commented
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?