Skip to content

Commit 33a7611

Browse files
committed
chore: make use of jinja python_versions definition in noxfile
1 parent b36862f commit 33a7611

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414
nox.options.default_venv_backend = "uv"
1515
os.environ.setdefault("PYO3_USE_ABI3_FORWARD_COMPATIBILITY", "1")
1616

17-
# Logic that helps avoid metaprogramming in cookiecutter-robust-python
18-
MIN_PYTHON_VERSION_SLUG: int = int("{{cookiecutter.min_python_version}}".lstrip("3."))
19-
MAX_PYTHON_VERSION_SLUG: int = int("{{cookiecutter.max_python_version}}".lstrip("3."))
20-
21-
PYTHON_VERSIONS: List[str] = [
22-
f"3.{VERSION_SLUG}" for VERSION_SLUG in range(MIN_PYTHON_VERSION_SLUG, MAX_PYTHON_VERSION_SLUG + 1)
23-
]
17+
PYTHON_VERSIONS: List[str] = {{cookiecutter.python_versions}}
2418
DEFAULT_PYTHON_VERSION: str = PYTHON_VERSIONS[-1]
2519

2620
REPO_ROOT: Path = Path(__file__).parent.resolve()

0 commit comments

Comments
 (0)