Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dolfinus opened this issue Oct 9, 2023 · 0 comments · Fixed by #285
Closed

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

dolfinus opened this issue Oct 9, 2023 · 0 comments · Fixed by #285

Comments

@dolfinus
Copy link

dolfinus commented Oct 9, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant