33import functools
44import pathlib
55import shutil
6+ import sys
67
78import nox
89
@@ -64,6 +65,7 @@ def dev_session(session: nox.Session) -> None:
6465@nox .session (name = "test" , python = False )
6566def 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 )
8688def 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 )
99102def 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 )
108112def 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