Skip to content

Commit 0660597

Browse files
authored
chore: update noxfile a bit (#693)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 13f470f commit 0660597

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

noxfile.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
import nox
44

5-
ALL_PYTHONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
6-
7-
nox.needs_version = ">=2024.3.2"
8-
nox.options.sessions = ["lint", "pylint", "tests"]
5+
nox.needs_version = ">=2024.4.15"
96
nox.options.default_venv_backend = "uv|virtualenv"
107

8+
ALL_PYTHONS = [
9+
c.split()[-1]
10+
for c in nox.project.load_toml("pyproject.toml")["project"]["classifiers"]
11+
if c.startswith("Programming Language :: Python :: 3.")
12+
]
13+
1114

1215
@nox.session(reuse_venv=True)
1316
def lint(session):
@@ -37,7 +40,7 @@ def tests(session):
3740
session.run("pytest", *session.posargs, env={"PYTHONTRACEMALLOC": "5"})
3841

3942

40-
@nox.session(reuse_venv=True)
43+
@nox.session(reuse_venv=True, default=False)
4144
def docs(session):
4245
"""
4346
Build the docs. Pass "serve" to serve.
@@ -55,7 +58,7 @@ def docs(session):
5558
session.log("Unsupported argument to docs")
5659

5760

58-
@nox.session
61+
@nox.session(default=False)
5962
def build(session):
6063
"""
6164
Build an SDist and wheel.

0 commit comments

Comments
 (0)