Skip to content

Commit 6281236

Browse files
committed
Test skip-magic-trailing-comma config
Support for skip-magic-trailing-comma config option was introduced in commit 20308e2. This adds a test that the config option is parsed by python-lsp-black.
1 parent df46daa commit 6281236

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/fixtures/config/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
line-length = 20
33
--fast = true
44
pyi = true
5+
skip-magic-trailing-comma = true
56
skip-string-normalization = true

tests/test_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_load_config(config):
233233
"target_version": set(),
234234
"pyi": True,
235235
"fast": True,
236-
"skip_magic_trailing_comma": False,
236+
"skip_magic_trailing_comma": True,
237237
"skip_string_normalization": True,
238238
"preview": False,
239239
}

0 commit comments

Comments
 (0)