Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed May 1, 2024
1 parent 215cee6 commit 844db07
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spin/cmds/meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,7 @@ def test(
cmd = ["pytest"]

p = _run(
cmd
+ ([f"--rootdir={site_path}"] if site_path else [])
+ list(pytest_args),
cmd + ([f"--rootdir={site_path}"] if site_path else []) + list(pytest_args),
cwd=site_path,
replace=True,
)
Expand Down Expand Up @@ -822,9 +820,9 @@ def docs(ctx, sphinx_target, clean, first_build, jobs, sphinx_gallery_plot):
)

if site_path:
os.environ[
"PYTHONPATH"
] = f'{site_path}{os.sep}:{os.environ.get("PYTHONPATH", "")}'
os.environ["PYTHONPATH"] = (
f'{site_path}{os.sep}:{os.environ.get("PYTHONPATH", "")}'
)
click.secho(
f"$ export PYTHONPATH={os.environ['PYTHONPATH']}",
bold=True,
Expand Down

0 comments on commit 844db07

Please sign in to comment.