Skip to content

Commit

Permalink
Fix hatch version issues
Browse files Browse the repository at this point in the history
  • Loading branch information
object-Object committed Nov 21, 2023
1 parent 7239b64 commit 9162bad
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import io
import shutil
from pathlib import Path
from typing import Mapping
Expand Down Expand Up @@ -151,12 +152,14 @@ def run_silent(
env: Mapping[str, str] | None = None,
external: bool = False,
):
output: str | None = session.run(
*args,
env=env,
silent=True,
external=external,
)
with io.StringIO() as f:
session.run(
*args,
env=env,
external=external,
stdout=f,
)
output = f.getvalue()
assert output
return output.strip()

Expand Down

0 comments on commit 9162bad

Please sign in to comment.