Skip to content

Commit 844db07

Browse files
committed
Fix linting
1 parent 215cee6 commit 844db07

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

spin/cmds/meson.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,7 @@ def test(
484484
cmd = ["pytest"]
485485

486486
p = _run(
487-
cmd
488-
+ ([f"--rootdir={site_path}"] if site_path else [])
489-
+ list(pytest_args),
487+
cmd + ([f"--rootdir={site_path}"] if site_path else []) + list(pytest_args),
490488
cwd=site_path,
491489
replace=True,
492490
)
@@ -822,9 +820,9 @@ def docs(ctx, sphinx_target, clean, first_build, jobs, sphinx_gallery_plot):
822820
)
823821

824822
if site_path:
825-
os.environ[
826-
"PYTHONPATH"
827-
] = f'{site_path}{os.sep}:{os.environ.get("PYTHONPATH", "")}'
823+
os.environ["PYTHONPATH"] = (
824+
f'{site_path}{os.sep}:{os.environ.get("PYTHONPATH", "")}'
825+
)
828826
click.secho(
829827
f"$ export PYTHONPATH={os.environ['PYTHONPATH']}",
830828
bold=True,

0 commit comments

Comments
 (0)