Skip to content

Commit 46af11c

Browse files
committed
fix: adjust session decorator kwargs throughout template noxfile
1 parent ed7070a commit 46af11c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@
4545
UPDATE_DEMO_OPTIONS: tuple[str, ...] = GENERATE_DEMO_OPTIONS
4646

4747

48-
@nox.session(name="generate-demo", python=DEFAULT_TEMPLATE_PYTHON_VERSION)
48+
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="generate-demo")
4949
def generate_demo(session: Session) -> None:
5050
"""Generates a project demo using the cookiecutter-robust-python template."""
5151
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "typer")
5252
session.run("python", GENERATE_DEMO_SCRIPT, *GENERATE_DEMO_OPTIONS, *session.posargs)
5353

5454

55-
@nox.session(name="clear-cache", python=None)
55+
@nox.session(python=False, name="clear-cache")
5656
def clear_cache(session: Session) -> None:
5757
"""Clear the cache of generated project demos.
5858
@@ -76,7 +76,7 @@ def lint(session: Session):
7676
session.run("ruff", "check", "--verbose", "--fix")
7777

7878

79-
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="lint-from-demo", tags=[])
79+
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="lint-from-demo")
8080
def lint_from_demo(session: Session):
8181
"""Lint the generated project's Python files and configurations."""
8282
session.log("Installing linting dependencies for the generated project...")
@@ -123,7 +123,7 @@ def test(session: Session) -> None:
123123

124124

125125
@nox.parametrize(arg_names="add_rust_extension", arg_values_list=[False], ids=["no-rust"])
126-
@nox.session(name="update-demo", python=DEFAULT_TEMPLATE_PYTHON_VERSION)
126+
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="update-demo")
127127
def update_demo(session: Session, add_rust_extension: bool) -> None:
128128
session.log("Installing script dependencies for updating generated project demos...")
129129
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "typer")
@@ -135,7 +135,7 @@ def update_demo(session: Session, add_rust_extension: bool) -> None:
135135
session.run("python", UPDATE_DEMO_SCRIPT, *args)
136136

137137

138-
@nox.session(venv_backend="none")
138+
@nox.session(python=False, name="release-template")
139139
def release_template(session: Session):
140140
"""Run the release process for the TEMPLATE using Commitizen.
141141

0 commit comments

Comments
 (0)