4747RUST : str = "rust"
4848
4949
50- @nox .session (python = False , name = "setup-git" , tags = [ENV ])
50+ @nox .session (python = None , name = "setup-git" , tags = [ENV ])
5151def setup_git (session : Session ) -> None :
5252 """Set up the git repo for the current project."""
5353 session .run ("python" , SCRIPTS_FOLDER / "setup-git.py" , REPO_ROOT , external = True )
5454
5555
56- @nox .session (python = False , name = "setup-venv" , tags = [ENV ])
56+ @nox .session (python = None , name = "setup-venv" , tags = [ENV ])
5757def setup_venv (session : Session ) -> None :
5858 """Set up the virtual environment for the current project."""
5959 session .run ("python" , SCRIPTS_FOLDER / "setup-venv.py" , REPO_ROOT , "-p" , PYTHON_VERSIONS [0 ], external = True )
@@ -72,14 +72,14 @@ def precommit(session: Session) -> None:
7272 activate_virtualenv_in_precommit_hooks (session )
7373
7474
75- @nox .session (python = False , name = "format-python" , tags = [FORMAT , PYTHON ])
75+ @nox .session (python = None , name = "format-python" , tags = [FORMAT , PYTHON ])
7676def format_python (session : Session ) -> None :
7777 """Run Python code formatter (Ruff format)."""
7878 session .log (f"Running Ruff formatter check with py{ session .python } ." )
7979 session .run ("uvx" , "ruff" , "format" , * session .posargs )
8080
8181
82- @nox .session (python = False , name = "lint-python" , tags = [LINT , PYTHON ])
82+ @nox .session (python = None , name = "lint-python" , tags = [LINT , PYTHON ])
8383def lint_python (session : Session ) -> None :
8484 """Run Python code linters (Ruff check, Pydocstyle rules)."""
8585 session .log (f"Running Ruff check with py{ session .python } ." )
@@ -96,7 +96,7 @@ def typecheck(session: Session) -> None:
9696 session .run ("pyright" , "--pythonversion" , session .python )
9797
9898
99- @nox .session (python = False , name = "security-python" , tags = [SECURITY , PYTHON , CI ])
99+ @nox .session (python = None , name = "security-python" , tags = [SECURITY , PYTHON , CI ])
100100def security_python (session : Session ) -> None :
101101 """Run code security checks (Bandit) on Python code."""
102102 session .log (f"Running Bandit static security analysis with py{ session .python } ." )
@@ -144,7 +144,7 @@ def docs_build(session: Session) -> None:
144144 session .run ("sphinx-build" , "-b" , "html" , "docs" , str (docs_build_dir ), "-W" )
145145
146146
147- @nox .session (python = False , name = "build-python" , tags = [BUILD , PYTHON ])
147+ @nox .session (python = None , name = "build-python" , tags = [BUILD , PYTHON ])
148148def build_python (session : Session ) -> None :
149149 """Build sdist and wheel packages (uv build)."""
150150 session .log (f"Building sdist and wheel packages with py{ session .python } ." )
@@ -154,7 +154,7 @@ def build_python(session: Session) -> None:
154154 session .log (f"- { path .name } " )
155155
156156
157- @nox .session (python = False , name = "build-container" , tags = [BUILD ])
157+ @nox .session (python = None , name = "build-container" , tags = [BUILD ])
158158def build_container (session : Session ) -> None :
159159 """Build the Docker container image.
160160
@@ -204,20 +204,16 @@ def setup_release(session: Session) -> None:
204204 session .run ("python" , SCRIPTS_FOLDER / "setup-release.py" , external = True )
205205
206206
207- @nox .session (python = False , name = "get-release-notes" , tags = [RELEASE ])
207+ @nox .session (python = None , name = "get-release-notes" , tags = [RELEASE ])
208208def get_release_notes (session : Session ) -> None :
209209 """Gets the latest release notes if between bumping the version and tagging the release."""
210210 session .log ("Getting release notes..." )
211- < << << << ours
212211 session .install ("-e" , "." , "--group" , "dev" )
213212 session .install ("typing_extensions" )
214213 session .run ("python" , SCRIPTS_FOLDER / "get-release-notes.py" , external = True )
215- == == == =
216- session .run ("python" , SCRIPTS_FOLDER / "get-release-notes.py" , * session .posargs , external = True )
217- >> >> >> > theirs
218214
219215
220- @nox .session (python = False , tags = [RELEASE ])
216+ @nox .session (python = None , tags = [RELEASE ])
221217def release (session : Session ) -> None :
222218 """Run the release process using Commitizen.
223219
@@ -252,7 +248,7 @@ def release(session: Session) -> None:
252248 session .log ("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline." )
253249
254250
255- @nox .session (python = False , name = "publish-python" , tags = [RELEASE ])
251+ @nox .session (python = None , name = "publish-python" , tags = [RELEASE ])
256252def publish_python (session : Session ) -> None :
257253 """Publish sdist and wheel packages to PyPI via uv publish.
258254
@@ -266,7 +262,7 @@ def publish_python(session: Session) -> None:
266262 session .run ("uv" , "publish" , "dist/*" , * session .posargs , external = True )
267263
268264
269- @nox .session (python = False )
265+ @nox .session (python = None )
270266def tox (session : Session ) -> None :
271267 """Run the 'tox' test matrix.
272268
0 commit comments