john-hen / Flake8-pyproject

Flake8 plug-in loading the configuration from pyproject.toml
https://pypi.org/project/Flake8-pyproject
MIT License
227 stars 10 forks source link

Add command-line option for custom config file (#11) #11

Closed justcallmelarry closed 2 years ago

justcallmelarry commented 2 years ago

Changes

Add a separate CLI option called --pyproject-file, based on the way flake8-black handles the same issue, ie config file type not being supported by flake8 in the first place.

Open questions/issues

Testing

john-hen commented 2 years ago

Sorry, took a while to merge and release. I was very busy the last few months and finally had a few days off.

I renamed the option to --toml-config in the end, somehow liked that a little better. The override behavior is fine, we can just ignore other config files in this case, the way I see it.

Thanks again, @justcallmelarry .