Skip to content

Commit 1c5253c

Browse files
committed
formatting
1 parent c64fd82 commit 1c5253c

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

tests/test_session.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import lsp_types
88
from lsp_types.pool import LSPProcessPool
99
from lsp_types.pyrefly.backend import PyreflyBackend
10-
from lsp_types.pyright.backend import PyrightBackend
1110
from lsp_types.pyrefly.config_schema import Model as PyreflyConfig
11+
from lsp_types.pyright.backend import PyrightBackend
1212

1313

1414
@pytest.fixture(params=[PyrightBackend, PyreflyBackend])
@@ -468,14 +468,17 @@ async def test_pyrefly_arbitrary_config_fields(tmp_path):
468468
"threads": 4,
469469
}
470470

471-
config |= t.cast(PyreflyConfig, {
472-
"custom_field": "test_value", # Arbitrary field
473-
"experimental_flag": True, # Arbitrary field
474-
"nested_config": { # Arbitrary nested field
475-
"mode": "test",
476-
"value": 42,
471+
config |= t.cast(
472+
PyreflyConfig,
473+
{
474+
"custom_field": "test_value", # Arbitrary field
475+
"experimental_flag": True, # Arbitrary field
476+
"nested_config": { # Arbitrary nested field
477+
"mode": "test",
478+
"value": 42,
479+
},
477480
},
478-
})
481+
)
479482

480483
# Write config file
481484
backend.write_config(tmp_path, config)
@@ -581,9 +584,10 @@ async def test_pyrefly_comprehensive_config_options(tmp_path):
581584
async def test_pyrefly_search_path_configuration():
582585
"""Test that search_path configuration enables custom import resolution"""
583586
backend = PyreflyBackend()
584-
from lsp_types.pyrefly.config_schema import Model as PyreflyConfig
585587
import tempfile
586588

589+
from lsp_types.pyrefly.config_schema import Model as PyreflyConfig
590+
587591
with tempfile.TemporaryDirectory() as tmp_dir:
588592
tmp_path = Path(tmp_dir)
589593

0 commit comments

Comments
 (0)