From 472479a5b432723a2580631d016f1836410d8ca3 Mon Sep 17 00:00:00 2001 From: Kyle Oliver Date: Sun, 2 Nov 2025 02:18:35 -0500 Subject: [PATCH 1/2] chore: add line to ensure ruff format passes in generated project --- {{cookiecutter.project_name}}/noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/{{cookiecutter.project_name}}/noxfile.py b/{{cookiecutter.project_name}}/noxfile.py index 6db67f2..118729f 100644 --- a/{{cookiecutter.project_name}}/noxfile.py +++ b/{{cookiecutter.project_name}}/noxfile.py @@ -199,6 +199,7 @@ def docs_build(session: Session) -> None: session.log("Building documentation.") session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-W") + @nox.session(python=DEFAULT_PYTHON_VERSION, name="docs", tags=[DOCS, BUILD]) def docs(session: Session) -> None: """Build and serve the project documentation (Sphinx).""" From 449678520b173475de2a88ac4871b331d7783217 Mon Sep 17 00:00:00 2001 From: Kyle Oliver Date: Sun, 2 Nov 2025 02:21:44 -0500 Subject: [PATCH 2/2] fix: adjust reference to nox session --- {{cookiecutter.project_name}}/.github/workflows/test-rust.yml | 2 +- {{cookiecutter.project_name}}/.gitlab-ci.yml | 2 +- {{cookiecutter.project_name}}/bitbucket-pipelines.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_name}}/.github/workflows/test-rust.yml b/{{cookiecutter.project_name}}/.github/workflows/test-rust.yml index 1a5e53f..3c04046 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/test-rust.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/test-rust.yml @@ -51,4 +51,4 @@ jobs: python-version-file: ".github/workflows/.python-version" - name: Run Rust tests - run: uvx nox -s test-rust + run: uvx nox -s tests-rust diff --git a/{{cookiecutter.project_name}}/.gitlab-ci.yml b/{{cookiecutter.project_name}}/.gitlab-ci.yml index eb48c40..c795ab4 100644 --- a/{{cookiecutter.project_name}}/.gitlab-ci.yml +++ b/{{cookiecutter.project_name}}/.gitlab-ci.yml @@ -264,7 +264,7 @@ test-rust: - curl -LsSf https://astral.sh/uv/install.sh | sh - export PATH="$PATH:/root/.cargo/bin" script: - - uvx nox -s test-rust + - uvx nox -s tests-rust {%- endif %} # Build Stage diff --git a/{{cookiecutter.project_name}}/bitbucket-pipelines.yml b/{{cookiecutter.project_name}}/bitbucket-pipelines.yml index d67922f..485d028 100644 --- a/{{cookiecutter.project_name}}/bitbucket-pipelines.yml +++ b/{{cookiecutter.project_name}}/bitbucket-pipelines.yml @@ -250,7 +250,7 @@ pipelines: script: - curl -LsSf https://astral.sh/uv/install.sh | sh - export PATH="$PATH:/root/.cargo/bin" - - uvx nox -s test-rust + - uvx nox -s tests-rust {%- endif %} # Pipeline for main/master branch