Skip to content

Commit f4bcd76

Browse files
committed
format
1 parent 5bdc45d commit f4bcd76

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

test/test_plugin.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,15 @@ def test_option_overrides_dmypy(last_diagnostics_monkeypatch, workspace):
196196
last_diagnostics_monkeypatch.setattr(
197197
FakeConfig,
198198
"plugin_settings",
199-
lambda _, p: {
200-
"overrides": overrides,
201-
"dmypy": True,
202-
"live_mode": False,
203-
}
204-
if p == "pylsp_mypy"
205-
else {},
199+
lambda _, p: (
200+
{
201+
"overrides": overrides,
202+
"dmypy": True,
203+
"live_mode": False,
204+
}
205+
if p == "pylsp_mypy"
206+
else {}
207+
),
206208
)
207209

208210
m = Mock(wraps=lambda a, **_: Mock(returncode=0, **{"stdout": ""}))
@@ -240,13 +242,15 @@ def test_dmypy_status_file(tmpdir, last_diagnostics_monkeypatch, workspace):
240242
last_diagnostics_monkeypatch.setattr(
241243
FakeConfig,
242244
"plugin_settings",
243-
lambda _, p: {
244-
"dmypy": True,
245-
"live_mode": False,
246-
"dmypy_status_file": str(statusFile),
247-
}
248-
if p == "pylsp_mypy"
249-
else {},
245+
lambda _, p: (
246+
{
247+
"dmypy": True,
248+
"live_mode": False,
249+
"dmypy_status_file": str(statusFile),
250+
}
251+
if p == "pylsp_mypy"
252+
else {}
253+
),
250254
)
251255

252256
document = Document(DOC_URI, workspace, DOC_TYPE_ERR)

0 commit comments

Comments
 (0)