diff --git a/{{cookiecutter.project_name}}/noxfile.py b/{{cookiecutter.project_name}}/noxfile.py old mode 100644 new mode 100755 index fe223941..e35df34c --- a/{{cookiecutter.project_name}}/noxfile.py +++ b/{{cookiecutter.project_name}}/noxfile.py @@ -1,3 +1,11 @@ +#!/usr/bin/env -S uv run --script + +# /// script +# dependencies = ["nox>=2025.2.9"] +# /// + +"""Nox runner.""" + from __future__ import annotations {% if cookiecutter.docs == 'sphinx' -%} @@ -133,3 +141,7 @@ def build(session: nox.Session) -> None: session.install("build") session.run("python", "-m", "build") + + +if __name__ == "__main__": + nox.main()