skip_magic_trailing_comma = true
config file support
#2606
Labels
C: configuration
CLI and configuration
R: not a bug
This is deliberate behavior of Black.
T: user support
OP looking for assistance or answers to a question
Is your feature request related to a problem? Please describe.
One of the reasons I use black is so that I can focus on code without having to focus on style. #1824 introduced a
--skip-magic-trailing-comma
flag to further control style. However, there's no way to set this flag in a config file, so the file format will change depending on whether or not a contributor uses the flag.Describe the solution you'd like
I would like to be able to set this in a config file like
pyproject.toml
:Describe alternatives you've considered
I could alias
black
toblack --skip-magic-trailing-comma
, but that only affects me, not other users who contribute to my library.Additional context
@hauntsaninja opening an issue as you suggested. I dug around a bit in the code but couldn't figure out how config file parsing works.
The text was updated successfully, but these errors were encountered: