Skip to content

Commit 5133680

Browse files
committed
fix: add some missing nox session installs for python-dotenv and refactor names to reduce entropy
1 parent 511655d commit 5133680

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="generate-demo")
5959
def generate_demo(session: Session) -> None:
6060
"""Generates a project demo using the cookiecutter-robust-python template."""
61-
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "typer")
61+
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "python-dotenv", "typer")
6262
session.run("python", GENERATE_DEMO_SCRIPT, *GENERATE_DEMO_OPTIONS, *session.posargs)
6363

6464

@@ -136,7 +136,7 @@ def test(session: Session) -> None:
136136
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="update-demo")
137137
def update_demo(session: Session, add_rust_extension: bool) -> None:
138138
session.log("Installing script dependencies for updating generated project demos...")
139-
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "typer")
139+
session.install("cookiecutter", "cruft", "platformdirs", "loguru", "python-dotenv", "typer")
140140

141141
session.log("Updating generated project demos...")
142142
args: list[str] = [*UPDATE_DEMO_OPTIONS]

scripts/generate-demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main(
1818
add_rust_extension: Annotated[bool, typer.Option("--add-rust-extension", "-r")] = False,
1919
no_cache: Annotated[bool, typer.Option("--no-cache", "-n")] = False
2020
) -> None:
21-
"""Updates the poetry.lock file."""
21+
"""Generates a project demo using the cookiecutter-robust-python template."""
2222
try:
2323
generate_demo(
2424
demos_cache_folder=demos_cache_folder,

0 commit comments

Comments
 (0)