Skip to content

Commit 5405dae

Browse files
authored
fix: follow noxfile recommendation NOX201, NOX202, NOX203 (#720)
fix: follow noxfile recommendation NOX201
1 parent 1768b4e commit 5405dae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

{{cookiecutter.project_name}}/noxfile.py

100644100755
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
#!/usr/bin/env -S uv run --script
2+
3+
# /// script
4+
# dependencies = ["nox>=2025.2.9"]
5+
# ///
6+
7+
"""Nox runner."""
8+
19
from __future__ import annotations
210

311
{% if cookiecutter.docs == 'sphinx' -%}
@@ -133,3 +141,7 @@ def build(session: nox.Session) -> None:
133141

134142
session.install("build")
135143
session.run("python", "-m", "build")
144+
145+
146+
if __name__ == "__main__":
147+
nox.main()

0 commit comments

Comments
 (0)