Skip to content

Commit d296d49

Browse files
committed
Revert "chore: update demo to the latest cookiecutter-robust-python"
This reverts commit 0dc4578.
1 parent 0dc4578 commit d296d49

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
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": "3fe6276285c66293f418a38abcdb8785d8fe5012",
2+
"_commit": "23c99cf2cbbcf6d9712b7c37f77844e6e964fe04",
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": "3fe6276285c66293f418a38abcdb8785d8fe5012",
3+
"commit": "23c99cf2cbbcf6d9712b7c37f77844e6e964fe04",
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": "3fe6276285c66293f418a38abcdb8785d8fe5012"
21+
"_commit": "23c99cf2cbbcf6d9712b7c37f77844e6e964fe04"
2222
}
2323
},
2424
"directory": null

noxfile.py

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
RUST: str = "rust"
4848

4949

50-
@nox.session(python=False, name="setup-git", tags=[ENV])
50+
@nox.session(python=None, name="setup-git", tags=[ENV])
5151
def setup_git(session: Session) -> None:
5252
"""Set up the git repo for the current project."""
5353
session.run("python", SCRIPTS_FOLDER / "setup-git.py", REPO_ROOT, external=True)
5454

5555

56-
@nox.session(python=False, name="setup-venv", tags=[ENV])
56+
@nox.session(python=None, name="setup-venv", tags=[ENV])
5757
def setup_venv(session: Session) -> None:
5858
"""Set up the virtual environment for the current project."""
5959
session.run("python", SCRIPTS_FOLDER / "setup-venv.py", REPO_ROOT, "-p", PYTHON_VERSIONS[0], external=True)
@@ -72,14 +72,14 @@ def precommit(session: Session) -> None:
7272
activate_virtualenv_in_precommit_hooks(session)
7373

7474

75-
@nox.session(python=False, name="format-python", tags=[FORMAT, PYTHON])
75+
@nox.session(python=None, name="format-python", tags=[FORMAT, PYTHON])
7676
def format_python(session: Session) -> None:
7777
"""Run Python code formatter (Ruff format)."""
7878
session.log(f"Running Ruff formatter check with py{session.python}.")
7979
session.run("uvx", "ruff", "format", *session.posargs)
8080

8181

82-
@nox.session(python=False, name="lint-python", tags=[LINT, PYTHON])
82+
@nox.session(python=None, name="lint-python", tags=[LINT, PYTHON])
8383
def lint_python(session: Session) -> None:
8484
"""Run Python code linters (Ruff check, Pydocstyle rules)."""
8585
session.log(f"Running Ruff check with py{session.python}.")
@@ -96,7 +96,7 @@ def typecheck(session: Session) -> None:
9696
session.run("pyright", "--pythonversion", session.python)
9797

9898

99-
@nox.session(python=False, name="security-python", tags=[SECURITY, PYTHON, CI])
99+
@nox.session(python=None, name="security-python", tags=[SECURITY, PYTHON, CI])
100100
def security_python(session: Session) -> None:
101101
"""Run code security checks (Bandit) on Python code."""
102102
session.log(f"Running Bandit static security analysis with py{session.python}.")
@@ -144,7 +144,7 @@ def docs_build(session: Session) -> None:
144144
session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-W")
145145

146146

147-
@nox.session(python=False, name="build-python", tags=[BUILD, PYTHON])
147+
@nox.session(python=None, name="build-python", tags=[BUILD, PYTHON])
148148
def build_python(session: Session) -> None:
149149
"""Build sdist and wheel packages (uv build)."""
150150
session.log(f"Building sdist and wheel packages with py{session.python}.")
@@ -154,7 +154,7 @@ def build_python(session: Session) -> None:
154154
session.log(f"- {path.name}")
155155

156156

157-
@nox.session(python=False, name="build-container", tags=[BUILD])
157+
@nox.session(python=None, name="build-container", tags=[BUILD])
158158
def build_container(session: Session) -> None:
159159
"""Build the Docker container image.
160160
@@ -204,20 +204,16 @@ def setup_release(session: Session) -> None:
204204
session.run("python", SCRIPTS_FOLDER / "setup-release.py", external=True)
205205

206206

207-
@nox.session(python=False, name="get-release-notes", tags=[RELEASE])
207+
@nox.session(python=None, name="get-release-notes", tags=[RELEASE])
208208
def get_release_notes(session: Session) -> None:
209209
"""Gets the latest release notes if between bumping the version and tagging the release."""
210210
session.log("Getting release notes...")
211-
<<<<<<< ours
212211
session.install("-e", ".", "--group", "dev")
213212
session.install("typing_extensions")
214213
session.run("python", SCRIPTS_FOLDER / "get-release-notes.py", external=True)
215-
=======
216-
session.run("python", SCRIPTS_FOLDER / "get-release-notes.py", *session.posargs, external=True)
217-
>>>>>>> theirs
218214

219215

220-
@nox.session(python=False, tags=[RELEASE])
216+
@nox.session(python=None, tags=[RELEASE])
221217
def release(session: Session) -> None:
222218
"""Run the release process using Commitizen.
223219
@@ -252,7 +248,7 @@ def release(session: Session) -> None:
252248
session.log("IMPORTANT: Push commits and tags to remote (`git push --follow-tags`) to trigger CD pipeline.")
253249

254250

255-
@nox.session(python=False, name="publish-python", tags=[RELEASE])
251+
@nox.session(python=None, name="publish-python", tags=[RELEASE])
256252
def publish_python(session: Session) -> None:
257253
"""Publish sdist and wheel packages to PyPI via uv publish.
258254
@@ -266,7 +262,7 @@ def publish_python(session: Session) -> None:
266262
session.run("uv", "publish", "dist/*", *session.posargs, external=True)
267263

268264

269-
@nox.session(python=False)
265+
@nox.session(python=None)
270266
def tox(session: Session) -> None:
271267
"""Run the 'tox' test matrix.
272268

scripts/setup-release.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ def get_parser() -> argparse.ArgumentParser:
2626
)
2727
parser.add_argument(
2828
"increment",
29-
nargs="?",
30-
default=None,
3129
type=str,
3230
help="Increment type to use when preparing the release.",
33-
choices=["MAJOR", "MINOR", "PATCH", "PRERELEASE"],
31+
choices=["major", "minor", "patch", "prerelease"],
3432
)
3533
return parser
3634

0 commit comments

Comments
 (0)