Skip to content

Commit 4636893

Browse files
committed
build: small fixes in build process and tests
1 parent 53475bc commit 4636893

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ def lint(session: Session):
131131
session.run("ruff", "check", "--verbose", "--fix")
132132

133133

134-
@nox.session(python=None)
134+
@nox.session(python=DEFAULT_TEMPLATE_PYTHON_VERSION)
135135
def lint_generated_project(session: Session):
136136
"""Lint the generated project's Python files and configurations."""
137137
session.log("Installing linting dependencies for the generated project...")
138-
session.install("-e", ".", "--group", "dev")
138+
session.install("-e", ".", "--group", "dev", "--group", "lint")
139139
session._runner.posargs = ["nox", "-s", "pre-commit"]
140140
in_demo(session)
141141
session._runner.posargs = [""]

tests/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
COOKIECUTTER_FOLDER: Path = REPO_FOLDER / "{{cookiecutter.project_name}}"
1010
HOOKS_FOLDER: Path = REPO_FOLDER / "hooks"
1111
SCRIPTS_FOLDER: Path = REPO_FOLDER / "scripts"
12+
GITHUB_ACTIONS_FOLDER: Path = COOKIECUTTER_FOLDER / ".github"
1213

1314
COOKIECUTTER_JSON_PATH: Path = REPO_FOLDER / "cookiecutter.json"
1415
COOKIECUTTER_JSON: dict[str, Any] = json.loads(COOKIECUTTER_JSON_PATH.read_text())
@@ -25,11 +26,13 @@
2526
FULL_CHECK_NOX_SESSIONS: list[str] = [f"full-check-{python_version}" for python_version in PYTHON_VERSIONS]
2627

2728

29+
2830
GLOBAL_NOX_SESSIONS: list[str] = [
2931
"pre-commit",
3032
"format-python",
3133
"lint-python",
3234
*TYPE_CHECK_NOX_SESSIONS,
35+
*TESTS_NOX_SESSIONS,
3336
"docs-build",
3437
"build-python",
3538
"build-container",

0 commit comments

Comments
 (0)