Skip to content

Commit da323a7

Browse files
committed
chore: update demo to the latest cookiecutter-robust-python
1 parent 151ea0f commit da323a7

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
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": "5d756a871ab41b11e3501fbd7b59297c92371b66",
2+
"_commit": "183e0478a9ef41b408c7e0349c228ab5a837fb9f",
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": "5d756a871ab41b11e3501fbd7b59297c92371b66",
3+
"commit": "183e0478a9ef41b408c7e0349c228ab5a837fb9f",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"license": "MIT",
2121
"development_status": "Development Status :: 1 - Planning",
2222
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
23-
"_commit": "5d756a871ab41b11e3501fbd7b59297c92371b66"
23+
"_commit": "183e0478a9ef41b408c7e0349c228ab5a837fb9f"
2424
}
2525
},
2626
"directory": null

noxfile.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@
3939
TEST: str = "test"
4040
COVERAGE: str = "coverage"
4141
SECURITY: str = "security"
42-
PERF: str = "perf"
4342
DOCS: str = "docs"
4443
BUILD: str = "build"
4544
RELEASE: str = "release"
4645
QUALITY: str = "quality"
47-
PYTHON: str = "python"
48-
RUST: str = "rust"
4946

5047

5148
@nox.session(python=False, name="setup-git", tags=[ENV])
@@ -88,21 +85,21 @@ def precommit(session: Session) -> None:
8885
activate_virtualenv_in_precommit_hooks(session)
8986

9087

91-
@nox.session(python=False, name="format-python", tags=[FORMAT, PYTHON, QUALITY])
88+
@nox.session(python=False, name="format-python", tags=[FORMAT, QUALITY])
9289
def format_python(session: Session) -> None:
9390
"""Run Python code formatter (Ruff format)."""
9491
session.log(f"Running Ruff formatter check with py{session.python}.")
9592
session.run("uvx", "ruff", "format", *session.posargs)
9693

9794

98-
@nox.session(python=False, name="lint-python", tags=[LINT, PYTHON, QUALITY])
95+
@nox.session(python=False, name="lint-python", tags=[LINT, QUALITY])
9996
def lint_python(session: Session) -> None:
10097
"""Run Python code linters (Ruff check, Pydocstyle rules)."""
10198
session.log(f"Running Ruff check with py{session.python}.")
10299
session.run("uvx", "ruff", "check", "--fix", "--verbose")
103100

104101

105-
@nox.session(python=PYTHON_VERSIONS, name="typecheck", tags=[TYPE, PYTHON])
102+
@nox.session(python=PYTHON_VERSIONS, name="typecheck")
106103
def typecheck(session: Session) -> None:
107104
"""Run static type checking (Pyright) on Python code."""
108105
session.log("Installing type checking dependencies...")
@@ -112,7 +109,7 @@ def typecheck(session: Session) -> None:
112109
session.run("pyright", "--pythonversion", session.python)
113110

114111

115-
@nox.session(python=False, name="security-python", tags=[SECURITY, PYTHON])
112+
@nox.session(python=False, name="security-python", tags=[SECURITY])
116113
def security_python(session: Session) -> None:
117114
"""Run code security checks (Bandit) on Python code."""
118115
session.log(f"Running Bandit static security analysis with py{session.python}.")
@@ -122,7 +119,7 @@ def security_python(session: Session) -> None:
122119
session.run("uvx", "pip-audit")
123120

124121

125-
@nox.session(python=PYTHON_VERSIONS, name="tests-python", tags=[TEST, PYTHON])
122+
@nox.session(python=PYTHON_VERSIONS, name="tests-python", tags=[TEST])
126123
def tests_python(session: Session) -> None:
127124
"""Run the Python test suite (pytest with coverage)."""
128125
session.log("Installing test dependencies...")
@@ -160,7 +157,7 @@ def docs_build(session: Session) -> None:
160157
session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-W")
161158

162159

163-
@nox.session(python=False, name="build-python", tags=[BUILD, PYTHON])
160+
@nox.session(python=False, name="build-python", tags=[BUILD])
164161
def build_python(session: Session) -> None:
165162
"""Build sdist and wheel packages (uv build)."""
166163
session.log(f"Building sdist and wheel packages with py{session.python}.")

0 commit comments

Comments
 (0)