Skip to content

Commit b329fae

Browse files
committed
refactor: rename match-generated-precommit.py to lint-from-demo.py and any other similarly named variables
1 parent 6fbfb3e commit b329fae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

noxfile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
)
4343

4444

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
4747

4848

4949
@nox.session(name="generate-demo-project", python=DEFAULT_TEMPLATE_PYTHON_VERSION)
@@ -77,12 +77,12 @@ def lint(session: Session):
7777
session.run("ruff", "check", "--verbose", "--fix")
7878

7979

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):
8282
"""Lint the generated project's Python files and configurations."""
8383
session.log("Installing linting dependencies for the generated project...")
8484
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)
8686

8787

8888
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@cli.callback(invoke_without_command=True)
18-
def match_generated_precommit(
18+
def lint_from_demo(
1919
repo_folder: Annotated[Path, FolderOption("--repo-folder", "-r")],
2020
demos_cache_folder: Annotated[Path, FolderOption("--demos-cache-folder", "-c")],
2121
demo_name: Annotated[str, typer.Option("--demo-name", "-d")],

0 commit comments

Comments
 (0)