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

Raise exception on invalid toml configuration #4165

Merged
merged 11 commits into from Jan 26, 2024

Conversation

dankrzeminski32
Copy link
Contributor

@dankrzeminski32 dankrzeminski32 commented Jan 23, 2024

Description

Resolves #4140, raises an exception when toml config file contains a key that doesn't exist in the set of possible cli arguments.

Checklist

  • Add an entry in CHANGES.md if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks! This is probably OK but I left a comment on the issue.

src/black/__init__.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good. I pushed a slight wording change.

@JelleZijlstra JelleZijlstra merged commit bccec8a into psf:main Jan 26, 2024
45 of 46 checks passed
@dankrzeminski32
Copy link
Contributor Author

Great, thanks for the help.

@hauntsaninja
Copy link
Collaborator

Thank you for adding this feature!

RedGuy12 pushed a commit to RedGuy12/black that referenced this pull request Jan 26, 2024
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
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.

Error on invalid configuration
3 participants