Skip to content

Commit 9a3c45b

Browse files
committed
feat: optimize the template's nox sessions to install less unnecessary dependencies
1 parent 6adeb38 commit 9a3c45b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def generate_demo_project(session: Session) -> None:
5353
session.run("python", GENERATE_DEMO_PROJECT_SCRIPT, *GENERATE_DEMO_PROJECT_OPTIONS, *session.posargs)
5454

5555

56-
@nox.session(name="clear-cache", python=DEFAULT_TEMPLATE_PYTHON_VERSION)
56+
@nox.session(name="clear-cache", python=None)
5757
def clear_cache(session: Session) -> None:
5858
"""Clear the cache of generated project demos.
5959
@@ -68,7 +68,7 @@ def clear_cache(session: Session) -> None:
6868
def lint(session: Session):
6969
"""Lint the template's own Python files and configurations."""
7070
session.log("Installing linting dependencies for the template source...")
71-
session.install("-e", ".", "--group", "dev", "--group", "lint")
71+
session.install("-e", ".", "--group", "lint")
7272

7373
session.log(f"Running Ruff formatter check on template files with py{session.python}.")
7474
session.run("ruff", "format")
@@ -89,7 +89,7 @@ def match_generated_precommit(session: Session):
8989
def docs(session: Session):
9090
"""Build the template documentation website."""
9191
session.log("Installing documentation dependencies for the template docs...")
92-
session.install("-e", ".", "--group", "dev", "--group", "docs")
92+
session.install("-e", ".", "--group", "docs")
9393

9494
session.log(f"Building template documentation with py{session.python}.")
9595
# Set path to allow Sphinx to import from template root if needed (e.g., __version__.py)

0 commit comments

Comments
 (0)