Skip to content

Commit 0181f59

Browse files
committed
chore: remove no longer used constants from noxfile.py
1 parent 481418d commit 0181f59

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

noxfile.py

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@
4242
*("--demo-name", DEFAULT_DEMO_NAME),
4343
)
4444

45-
TEMPLATE_PYTHON_LOCATIONS: tuple[Path, ...] = (Path("noxfile.py"), Path("scripts"), Path("hooks"))
46-
47-
TEMPLATE_CONFIG_AND_DOCS: tuple[Path, ...] = (
48-
Path("pyproject.toml"),
49-
Path(".ruff.toml"),
50-
Path(".editorconfig"),
51-
Path(".gitignore"),
52-
Path(".pre-commit-config.yaml"),
53-
Path(".cz.toml"),
54-
Path("cookiecutter.json"),
55-
Path("README.md"),
56-
Path("LICENSE"),
57-
Path("CODE_OF_CONDUCT.md"),
58-
Path("CHANGELOG.md"),
59-
Path("docs/"),
60-
)
61-
6245

6346
@nox.session(name="generate-demo-project", python=DEFAULT_TEMPLATE_PYTHON_VERSION)
6447
def generate_demo_project(session: Session) -> None:
@@ -141,6 +124,16 @@ def lint(session: Session):
141124
session.run("ruff", "check", "--verbose", "--fix")
142125

143126

127+
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION)
128+
def lint_generated_project(session: Session):
129+
"""Lint the generated project's Python files and configurations."""
130+
session.log("Installing linting dependencies for the generated project...")
131+
session.install("-e", ".", "--group", "dev", "--group", "lint")
132+
session.notify("in-demo", ["nox", "-s", "pre-commit"])
133+
session.notify("in-demo", )
134+
session.run("retrocookie")
135+
136+
144137
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION)
145138
def docs(session: Session):
146139
"""Build the template documentation website."""

0 commit comments

Comments
 (0)