From 022cead8fbe82b855078f2b2d6dadb26268a9cf9 Mon Sep 17 00:00:00 2001 From: Cliff Hill Date: Tue, 26 Aug 2025 09:15:59 -0400 Subject: [PATCH] Fixing nox. Signed-off-by: Cliff Hill --- backend/codecov.yml | 4 ++-- backend/noxfile.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/codecov.yml b/backend/codecov.yml index 9ac26504..39c15fc0 100644 --- a/backend/codecov.yml +++ b/backend/codecov.yml @@ -3,7 +3,7 @@ coverage: status: project: default: - target: "100" + target: "90" patch: default: - target: "100" + target: "90" diff --git a/backend/noxfile.py b/backend/noxfile.py index 5967a992..a9cb5e0e 100644 --- a/backend/noxfile.py +++ b/backend/noxfile.py @@ -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)