Skip to content

Commit 53475bc

Browse files
committed
build: remove unneeded python venvs for sessions that just notify other sessions
1 parent ea3ce44 commit 53475bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def tox(session: Session) -> None:
389389
# These sessions provide easy entry points by notifying or calling granular sessions.
390390
# Their names often align with the intended CI workflow steps (e.g., 'build' orchestrates builds).
391391

392-
@nox.session(python=DEFAULT_PYTHON_VERSION) # Run the orchestrator on the default Python version
392+
@nox.session(python=None) # Run the orchestrator on the default Python version
393393
def build(session: Session) -> None:
394394
"""Orchestrates building all project artifacts (Python packages, potentially Rust)."""
395395
session.log(f"Queueing build sessions for py{session.python} if applicable.")
@@ -398,7 +398,7 @@ def build(session: Session) -> None:
398398
session.notify("build-python")
399399

400400

401-
@nox.session(python=DEFAULT_PYTHON_VERSION) # Run the orchestrator on the default Python version
401+
@nox.session(python=None) # Run the orchestrator on the default Python version
402402
def publish(session: Session) -> None:
403403
"""Orchestrates publishing all project artifacts (Python packages, potentially Rust)."""
404404
session.log(f"Queueing publish sessions for py{session.python} if applicable.")
@@ -407,7 +407,7 @@ def publish(session: Session) -> None:
407407
session.notify("publish-python")
408408

409409

410-
@nox.session(python=PYTHON_VERSIONS)
410+
@nox.session(python=None)
411411
def check(session: Session) -> None:
412412
"""Run primary quality checks (format, lint, typecheck, security)."""
413413
session.log(f"Queueing core check sessions for py{session.python} if applicable.")
@@ -417,7 +417,7 @@ def check(session: Session) -> None:
417417
session.notify("security-python")
418418

419419

420-
@nox.session(python=PYTHON_VERSIONS, name="full-check")
420+
@nox.session(python=None, name="full-check")
421421
def full_check(session: Session) -> None:
422422
"""Run all core quality checks and tests."""
423423
session.log(f"Queueing all check and test sessions for py{session.python} if applicable.")

0 commit comments

Comments
 (0)