From 45df79646dc393dd395a45d52d2031fb2381ed7e Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:15:19 +0530 Subject: [PATCH] Use `[dev]` extras for nox session invocations --- noxfile.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/noxfile.py b/noxfile.py index c14e5b88..e88df260 100644 --- a/noxfile.py +++ b/noxfile.py @@ -13,19 +13,17 @@ @nox.session def unit(session): - session.install("-e", ".[all]", silent=False) + session.install("-e", ".[all,dev]", silent=False) if PYBOP_SCHEDULED: session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False) - session.install("pytest", "pytest-mock", silent=False) session.run("pytest", "--unit") @nox.session def coverage(session): - session.install("-e", ".[all]", silent=False) + session.install("-e", ".[all,dev]", silent=False) if PYBOP_SCHEDULED: session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False) - session.install("pytest", "pytest-cov", "pytest-mock", silent=False) session.run( "pytest", "--unit", @@ -38,10 +36,9 @@ def coverage(session): @nox.session def notebooks(session): """Run the examples tests for Jupyter notebooks.""" - session.install("-e", ".[all]", silent=False) + session.install("-e", ".[all,dev]", silent=False) if PYBOP_SCHEDULED: session.run("pip", "install", f"pybamm=={PYBAMM_VERSION}", silent=False) - session.install("pytest", "nbmake", silent=False) session.run("pytest", "--nbmake", "--examples", "examples/", external=True)