vim: Parse skip_magic_trailing_comma from pyproject.toml (#2613)
Co-authored-by: Kyle Kovacs <kkovacs@diconfiberoptics.com>
This commit is contained in:
parent
1d7163957a
commit
1d7260050d
@ -15,6 +15,7 @@
|
||||
### Integrations
|
||||
|
||||
- Fixed vim plugin with Python 3.10 by removing deprecated distutils import (#2610)
|
||||
- The vim plugin now parses `skip_magic_trailing_comma` from pyproject.toml (#2613)
|
||||
|
||||
## 21.10b0
|
||||
|
||||
|
@ -29,6 +29,7 @@ FLAGS = [
|
||||
Flag(name="fast", cast=strtobool),
|
||||
Flag(name="skip_string_normalization", cast=strtobool),
|
||||
Flag(name="quiet", cast=strtobool),
|
||||
Flag(name="skip_magic_trailing_comma", cast=strtobool),
|
||||
]
|
||||
|
||||
|
||||
@ -143,6 +144,7 @@ def Black(**kwargs):
|
||||
line_length=configs["line_length"],
|
||||
string_normalization=not configs["skip_string_normalization"],
|
||||
is_pyi=vim.current.buffer.name.endswith('.pyi'),
|
||||
magic_trailing_comma=not configs["skip_magic_trailing_comma"],
|
||||
**black_kwargs,
|
||||
)
|
||||
quiet = configs["quiet"]
|
||||
|
Loading…
Reference in New Issue
Block a user