diff --git a/noxfile.py b/noxfile.py index 770d95b..68b78e7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,9 +1,8 @@ import nox -@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="uv") def tests(session: nox.Session) -> None: args = session.posargs or ["--cov"] - session.install("-r", "requirements_test.txt") - session.install(".") + session.install(".[test]") session.run("pytest", *args) diff --git a/noxfile_conda.py b/noxfile_conda.py index 7ba7b37..ef4a184 100644 --- a/noxfile_conda.py +++ b/noxfile_conda.py @@ -4,6 +4,6 @@ @nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba") def conda_tests(session: nox.Session) -> None: args = session.posargs or ["--cov"] - session.conda_install("--file", "requirements_test.txt") - session.install(".") + session.conda_install("uv") + session.install(".[test]") session.run("pytest", *args) diff --git a/noxfile_conda_lint.py b/noxfile_conda_lint.py index f4052aa..88ab393 100644 --- a/noxfile_conda_lint.py +++ b/noxfile_conda_lint.py @@ -1,10 +1,10 @@ import nox -locations = "src/nbmetaclean", "tests", "noxfile.py" +locations = "." @nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba") def conda_lint(session: nox.Session) -> None: args = session.posargs or locations - session.conda_install("flake8") - session.run("flake8", *args) + session.conda_install("ruff") + session.run("ruff", "check", *args) diff --git a/noxfile_lint.py b/noxfile_lint.py index 84af18a..d2429a7 100644 --- a/noxfile_lint.py +++ b/noxfile_lint.py @@ -1,10 +1,10 @@ import nox -locations = "src/nbmetaclean", "tests", "noxfile.py" +locations = "." -@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"]) +@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="uv") def lint(session: nox.Session) -> None: args = session.posargs or locations - session.install("flake8") - session.run("flake8", *args) + session.install("ruff") + session.run("ruff", "check", *args)