Skip to content

Commit 541ec4d

Browse files
authored
Merge pull request #40 from ayasyrev:fix_nox
Fix_nox
2 parents 94fb457 + c29f5c1 commit 541ec4d

File tree

5 files changed

+15
-23
lines changed

5 files changed

+15
-23
lines changed

noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import nox
22

33

4+
nox.options.default_venv_backend = "uv|virtualenv"
5+
nox.options.reuse_existing_virtualenvs = True
6+
7+
48
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
59
def tests(session: nox.Session) -> None:
610
args = session.posargs or ["--cov"]
7-
session.install("uv")
8-
session.run("uv", "pip", "install", ".[test]")
11+
session.install("-e", ".[test]")
912
session.run("pytest", *args)

noxfile_conda.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import nox
22

3+
nox.options.default_venv_backend = "mamba|conda"
4+
nox.options.reuse_existing_virtualenvs = True
35

4-
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba")
6+
7+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
58
def conda_tests(session: nox.Session) -> None:
69
args = session.posargs or ["--cov"]
710
session.conda_install("uv")
8-
session.install("uv", "pip", "install", ".[test]")
11+
session.run("uv", "pip", "install", "-e", ".[test]")
912
session.run("pytest", *args)

noxfile_conda_lint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import nox
22

33
locations = "."
4+
nox.options.default_venv_backend = "mamba|conda"
5+
nox.options.reuse_existing_virtualenvs = True
46

57

6-
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], venv_backend="mamba")
8+
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
79
def conda_lint(session: nox.Session) -> None:
810
args = session.posargs or locations
911
session.conda_install("ruff")

noxfile_cov.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

noxfile_lint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import nox
22

33
locations = "."
4+
nox.options.default_venv_backend = "uv|virtualenv"
5+
nox.options.reuse_existing_virtualenvs = True
46

57

68
@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])

0 commit comments

Comments
 (0)