|
42 | 42 | *("--demo-name", DEFAULT_DEMO_NAME), |
43 | 43 | ) |
44 | 44 |
|
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 | | - |
62 | 45 |
|
63 | 46 | @nox.session(name="generate-demo-project", python=DEFAULT_TEMPLATE_PYTHON_VERSION) |
64 | 47 | def generate_demo_project(session: Session) -> None: |
@@ -141,6 +124,16 @@ def lint(session: Session): |
141 | 124 | session.run("ruff", "check", "--verbose", "--fix") |
142 | 125 |
|
143 | 126 |
|
| 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 | + |
144 | 137 | @nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION) |
145 | 138 | def docs(session: Session): |
146 | 139 | """Build the template documentation website.""" |
|
0 commit comments