File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ install_requires =
22
22
python-lsp-server>=1.4.0
23
23
black>=23.11.0
24
24
tomli; python_version<'3.11'
25
+ tests_require =
26
+ black>=24.2.0
25
27
python_requires = >= 3.8
26
28
27
29
[options.entry_points]
Original file line number Diff line number Diff line change @@ -281,7 +281,14 @@ def test_load_config_defaults(config):
281
281
282
282
assert config == {
283
283
"line_length" : 88 ,
284
- "target_version" : set (),
284
+ "target_version" : set (
285
+ [
286
+ black .TargetVersion .PY38 ,
287
+ black .TargetVersion .PY39 ,
288
+ black .TargetVersion .PY310 ,
289
+ black .TargetVersion .PY311 ,
290
+ ]
291
+ ),
285
292
"pyi" : False ,
286
293
"fast" : False ,
287
294
"skip_magic_trailing_comma" : False ,
@@ -297,7 +304,14 @@ def test_load_config_with_skip_options(config_with_skip_options):
297
304
298
305
assert config == {
299
306
"line_length" : 88 ,
300
- "target_version" : set (),
307
+ "target_version" : set (
308
+ [
309
+ black .TargetVersion .PY38 ,
310
+ black .TargetVersion .PY39 ,
311
+ black .TargetVersion .PY310 ,
312
+ black .TargetVersion .PY311 ,
313
+ ]
314
+ ),
301
315
"pyi" : False ,
302
316
"fast" : False ,
303
317
"skip_magic_trailing_comma" : True ,
You can’t perform that action at this time.
0 commit comments