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

Support .toml configuration format with --config flag #249

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

bricker
Copy link
Contributor

@bricker bricker commented Apr 16, 2023

Fixes #193

Adds support for a TOML-formatted configuration file when using the --config command line argument.

Currently, passing a TOML file into the --config argument results in this error:

autoflake --config ./path/to/pyproject.toml test_me.py

#  File "[...]/.local/share/pyenv/versions/3.11.2/lib/python3.11/configparser.py", line 1132, in _read
#    raise e
# configparser.ParsingError: Source contains parsing errors: PosixPath('./path/to/pyproject.toml')

Copy link
Collaborator

@fsouza fsouza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fsouza fsouza merged commit 780b44f into PyCQA:main Apr 17, 2023
fsouza added a commit that referenced this pull request Apr 18, 2023
This introduced a breaking change (#251).

This reverts commit 780b44f.
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 this pull request may close these issues.

--config does not work with project.toml
2 participants