Skip to content

Commit 95fc8e8

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent dec94d7 commit 95fc8e8

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_commit": "742c9257b9b008cc0801f4817a0e9f2d029a8cce",
2+
"_commit": "2703dc5244f82596b74101c9d19393c4168a3f9a",
33
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
44
"add_rust_extension": false,
55
"author": "Kyle Oliver",

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
3-
"commit": "742c9257b9b008cc0801f4817a0e9f2d029a8cce",
3+
"commit": "2703dc5244f82596b74101c9d19393c4168a3f9a",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -18,7 +18,7 @@
1818
"license": "MIT",
1919
"development_status": "Development Status :: 1 - Planning",
2020
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
21-
"_commit": "742c9257b9b008cc0801f4817a0e9f2d029a8cce"
21+
"_commit": "2703dc5244f82596b74101c9d19393c4168a3f9a"
2222
}
2323
},
2424
"directory": null

noxfile.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ def lint_python(session: Session) -> None:
8686
session.run("uvx", "ruff", "check", "--fix", "--verbose")
8787

8888

89-
@nox.parametrize(arg_names="python_version", arg_values_list=PYTHON_VERSIONS, ids=PYTHON_VERSIONS)
90-
@nox.session(python=None, name="typecheck", tags=[TYPE, PYTHON, CI])
91-
def typecheck(session: Session, python_version: str) -> None:
89+
@nox.session(python=PYTHON_VERSIONS, name="typecheck", tags=[TYPE, PYTHON, CI])
90+
def typecheck(session: Session) -> None:
9291
"""Run static type checking (Pyright) on Python code."""
93-
session.log(f"Running Pyright check with py{python_version}.")
94-
session.run("uvx", "pyright", "--pythonversion", python_version)
92+
session.log("Installing type checking dependencies...")
93+
session.install("-e", ".", "--group", "dev")
94+
95+
session.log(f"Running Pyright check with py{session.python}.")
96+
session.run("pyright", "--pythonversion", session.python)
9597

9698

9799
@nox.session(python=None, name="security-python", tags=[SECURITY, PYTHON, CI])

0 commit comments

Comments
 (0)