-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error on invalid configuration #4140
Comments
I'm a little concerned this could cause problems if people use the same configuration file across multiple versions of Black. Do other comparable tools tend to raise errors on any unrecognized keys? |
Ruff and isort notified me of incorrect settings. Ruff:
isort (raises
|
Thanks! Prettier just shows a warning:
That might be a safer option. |
Agreed, I'll adjust the PR to print a warning instead. |
The downside of a warning is that we encourage our users to invoke Black less interactively, e.g. via IDE or pre-commit or whatever. Still, definitely better than today / we can always make it stricter later if we feel the need to!
I think this might be a feature if the config file contains flags specific to some version of Black |
That's definitely a reasonable point, but we already have the |
Currently if you make a typo when configuring Black you don't get an error
The text was updated successfully, but these errors were encountered: