|
42 | 42 | ) |
43 | 43 |
|
44 | 44 |
|
45 | | -MATCH_GENERATED_PRECOMMIT_SCRIPT: Path = SCRIPTS_FOLDER / "match-generated-precommit.py" |
46 | | -MATCH_GENERATED_PRECOMMIT_OPTIONS: tuple[str, ...] = GENERATE_DEMO_PROJECT_OPTIONS |
| 45 | +LINT_FROM_DEMO_SCRIPT: Path = SCRIPTS_FOLDER / "lint-from-demo.py" |
| 46 | +LINT_FROM_DEMO_OPTIONS: tuple[str, ...] = GENERATE_DEMO_PROJECT_OPTIONS |
47 | 47 |
|
48 | 48 |
|
49 | 49 | @nox.session(name="generate-demo-project", python=DEFAULT_TEMPLATE_PYTHON_VERSION) |
@@ -77,12 +77,12 @@ def lint(session: Session): |
77 | 77 | session.run("ruff", "check", "--verbose", "--fix") |
78 | 78 |
|
79 | 79 |
|
80 | | -@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="match-generated-precommit", tags=[]) |
81 | | -def match_generated_precommit(session: Session): |
| 80 | +@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION, name="lint-from-demo", tags=[]) |
| 81 | +def lint_from_demo(session: Session): |
82 | 82 | """Lint the generated project's Python files and configurations.""" |
83 | 83 | session.log("Installing linting dependencies for the generated project...") |
84 | 84 | session.install("-e", ".", "--group", "dev", "--group", "lint") |
85 | | - session.run("python", MATCH_GENERATED_PRECOMMIT_SCRIPT, *MATCH_GENERATED_PRECOMMIT_OPTIONS, *session.posargs) |
| 85 | + session.run("python", LINT_FROM_DEMO_SCRIPT, *LINT_FROM_DEMO_OPTIONS, *session.posargs) |
86 | 86 |
|
87 | 87 |
|
88 | 88 | @nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION) |
|
0 commit comments