Fixing nox.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-08-26 09:15:59 -04:00
parent 3cd802610f
commit 022cead8fb
2 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ coverage:
status:
project:
default:
target: "100"
target: "90"
patch:
default:
target: "100"
target: "90"

View File

@@ -144,7 +144,7 @@ def safety(session: Session) -> None:
"""Scan dependencies for insecure packages."""
requirements = session.poetry.export_requirements()
session.install("safety")
session.run("safety", "check", "--full-report", f"--file={requirements}")
session.run("safety", "scan", "--full-report", f"--file={requirements}")
@session(python=python_versions)
@@ -152,7 +152,7 @@ def mypy(session: Session) -> None:
"""Type-check using mypy."""
args = session.posargs or ["src", "tests", "docs/conf.py"]
session.install(".")
session.install("mypy", "pytest")
session.install("mypy", "pytest", "pytest-asyncio")
session.run("mypy", *args)
if not session.posargs:
session.run("mypy", f"--python-executable={sys.executable}", "noxfile.py")
@@ -162,7 +162,7 @@ def mypy(session: Session) -> None:
def tests(session: Session) -> None:
"""Run the test suite."""
session.install(".")
session.install("coverage[toml]", "pytest", "pygments")
session.install("coverage[toml]", "pytest", "pygments", "pytest-asyncio")
try:
session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs)
finally:
@@ -187,7 +187,7 @@ def coverage(session: Session) -> None:
def typeguard(session: Session) -> None:
"""Runtime type checking using Typeguard."""
session.install(".")
session.install("pytest", "typeguard", "pygments")
session.install("pytest", "typeguard", "pygments", "pytest-asyncio")
session.run("pytest", f"--typeguard-packages={package}", *session.posargs)