Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 1b8f7f3

Browse files
committed
Update noxfile.py
1 parent 89db906 commit 1b8f7f3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/snippets/noxfile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
BLACK_VERSION = "black==22.3.0"
3333
ISORT_VERSION = "isort==5.10.1"
3434

35+
DEFAULT_PYTHON_VERSION = "3.13"
36+
3537
# Copy `noxfile_config.py` to your directory and modify it instead.
3638

3739
# `TEST_CONFIG` dict is a configuration hook that allows users to
@@ -147,7 +149,7 @@ def lint(session: nox.sessions.Session) -> None:
147149
#
148150

149151

150-
@nox.session
152+
@nox.session(python=DEFAULT_PYTHON_VERSION)
151153
def blacken(session: nox.sessions.Session) -> None:
152154
"""Run black. Format code to uniform standard."""
153155
session.install(BLACK_VERSION)

0 commit comments

Comments
 (0)