|
7 | 7 | import lsp_types |
8 | 8 | from lsp_types.pool import LSPProcessPool |
9 | 9 | from lsp_types.pyrefly.backend import PyreflyBackend |
10 | | -from lsp_types.pyright.backend import PyrightBackend |
11 | 10 | from lsp_types.pyrefly.config_schema import Model as PyreflyConfig |
| 11 | +from lsp_types.pyright.backend import PyrightBackend |
12 | 12 |
|
13 | 13 |
|
14 | 14 | @pytest.fixture(params=[PyrightBackend, PyreflyBackend]) |
@@ -468,14 +468,17 @@ async def test_pyrefly_arbitrary_config_fields(tmp_path): |
468 | 468 | "threads": 4, |
469 | 469 | } |
470 | 470 |
|
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 | + }, |
477 | 480 | }, |
478 | | - }) |
| 481 | + ) |
479 | 482 |
|
480 | 483 | # Write config file |
481 | 484 | backend.write_config(tmp_path, config) |
@@ -581,9 +584,10 @@ async def test_pyrefly_comprehensive_config_options(tmp_path): |
581 | 584 | async def test_pyrefly_search_path_configuration(): |
582 | 585 | """Test that search_path configuration enables custom import resolution""" |
583 | 586 | backend = PyreflyBackend() |
584 | | - from lsp_types.pyrefly.config_schema import Model as PyreflyConfig |
585 | 587 | import tempfile |
586 | 588 |
|
| 589 | + from lsp_types.pyrefly.config_schema import Model as PyreflyConfig |
| 590 | + |
587 | 591 | with tempfile.TemporaryDirectory() as tmp_dir: |
588 | 592 | tmp_path = Path(tmp_dir) |
589 | 593 |
|
|
0 commit comments