Skip to content

Commit 04d328c

Browse files
committed
debug info
1 parent a26b381 commit 04d328c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import functools
44
import pathlib
55
import shutil
6+
import sys
67

78
import nox
89

@@ -64,6 +65,7 @@ def dev_session(session: nox.Session) -> None:
6465
@nox.session(name="test", python=False)
6566
def run_tests_with_coverage(session: nox.Session) -> None:
6667
"""Run pytest in isolated environment, display coverage. Extra arguements passed to pytest."""
68+
session.log(f"Python version: {sys.version}")
6769
partial = "partial-coverage" in session.posargs
6870
extra: list[str] = []
6971

@@ -85,6 +87,7 @@ def run_tests_with_coverage(session: nox.Session) -> None:
8587
@nox.session(name="combine", python=False)
8688
def combine_coverage(session: nox.Session) -> None:
8789
"""Combine parallel-mode coverage files and produce reports."""
90+
session.log(f"Python version: {sys.version}")
8891
session.run_install("uv", "sync", *SYNC_ARGS)
8992

9093
coverage = functools.partial(session.run, "uv", "run", "coverage")
@@ -98,6 +101,7 @@ def combine_coverage(session: nox.Session) -> None:
98101
@nox.session(name="lint", python=False)
99102
def run_linters(session: nox.Session) -> None:
100103
"""Run code linters, and type checking against all files."""
104+
session.log(f"Python version: {sys.version}")
101105
session.run_install("uv", "sync", "--group", "lint", *SYNC_ARGS)
102106

103107
for linter_args in LINTERS:
@@ -107,6 +111,7 @@ def run_linters(session: nox.Session) -> None:
107111
@nox.session(name="format", python=False)
108112
def run_formatters(session: nox.Session) -> None:
109113
"""Run code formatters against all files."""
114+
session.log(f"Python version: {sys.version}")
110115
session.run_install("uv", "sync", "--group", "format", *SYNC_ARGS)
111116

112117
for formatter_args in FORMATTERS:

0 commit comments

Comments
 (0)