diff --git a/.cookiecutter.json b/.cookiecutter.json index 89ba1b9..fa50acc 100644 --- a/.cookiecutter.json +++ b/.cookiecutter.json @@ -1,5 +1,5 @@ { - "_commit": "f46d0e9611ca496d3600e43343a01dcfb86caee6", + "_commit": "c6577daf23a9972a456f2331e679b07c049a264a", "_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python", "add_rust_extension": false, "author": "Kyle Oliver", diff --git a/.cruft.json b/.cruft.json index db5dd5c..ad7ed70 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python", - "commit": "f46d0e9611ca496d3600e43343a01dcfb86caee6", + "commit": "c6577daf23a9972a456f2331e679b07c049a264a", "checkout": null, "context": { "cookiecutter": { @@ -20,7 +20,7 @@ "license": "MIT", "development_status": "Development Status :: 1 - Planning", "_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python", - "_commit": "f46d0e9611ca496d3600e43343a01dcfb86caee6" + "_commit": "c6577daf23a9972a456f2331e679b07c049a264a" } }, "directory": null diff --git a/CHANGELOG.md b/CHANGELOG.md index fee30e9..fa04263 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## v0.25.0 (2025-09-18) + ## v0.24.0 (2025-08-01) ## v0.23.0 (2025-08-01) diff --git a/noxfile.py b/noxfile.py index aaaeccb..236aa06 100644 --- a/noxfile.py +++ b/noxfile.py @@ -39,13 +39,10 @@ TEST: str = "test" COVERAGE: str = "coverage" SECURITY: str = "security" -PERF: str = "perf" DOCS: str = "docs" BUILD: str = "build" RELEASE: str = "release" QUALITY: str = "quality" -PYTHON: str = "python" -RUST: str = "rust" @nox.session(python=False, name="setup-git", tags=[ENV]) @@ -88,21 +85,21 @@ def precommit(session: Session) -> None: activate_virtualenv_in_precommit_hooks(session) -@nox.session(python=False, name="format-python", tags=[FORMAT, PYTHON, QUALITY]) +@nox.session(python=False, name="format-python", tags=[FORMAT, QUALITY]) def format_python(session: Session) -> None: """Run Python code formatter (Ruff format).""" session.log(f"Running Ruff formatter check with py{session.python}.") session.run("uvx", "ruff", "format", *session.posargs) -@nox.session(python=False, name="lint-python", tags=[LINT, PYTHON, QUALITY]) +@nox.session(python=False, name="lint-python", tags=[LINT, QUALITY]) def lint_python(session: Session) -> None: """Run Python code linters (Ruff check, Pydocstyle rules).""" session.log(f"Running Ruff check with py{session.python}.") session.run("uvx", "ruff", "check", "--fix", "--verbose") -@nox.session(python=PYTHON_VERSIONS, name="typecheck", tags=[TYPE, PYTHON]) +@nox.session(python=PYTHON_VERSIONS, name="typecheck") def typecheck(session: Session) -> None: """Run static type checking (Pyright) on Python code.""" session.log("Installing type checking dependencies...") @@ -112,7 +109,7 @@ def typecheck(session: Session) -> None: session.run("pyright", "--pythonversion", session.python) -@nox.session(python=False, name="security-python", tags=[SECURITY, PYTHON]) +@nox.session(python=False, name="security-python", tags=[SECURITY]) def security_python(session: Session) -> None: """Run code security checks (Bandit) on Python code.""" session.log(f"Running Bandit static security analysis with py{session.python}.") @@ -122,7 +119,7 @@ def security_python(session: Session) -> None: session.run("uvx", "pip-audit") -@nox.session(python=PYTHON_VERSIONS, name="tests-python", tags=[TEST, PYTHON]) +@nox.session(python=PYTHON_VERSIONS, name="tests-python", tags=[TEST]) def tests_python(session: Session) -> None: """Run the Python test suite (pytest with coverage).""" session.log("Installing test dependencies...") @@ -160,7 +157,7 @@ def docs_build(session: Session) -> None: session.run("sphinx-build", "-b", "html", "docs", str(docs_build_dir), "-W") -@nox.session(python=False, name="build-python", tags=[BUILD, PYTHON]) +@nox.session(python=False, name="build-python", tags=[BUILD]) def build_python(session: Session) -> None: """Build sdist and wheel packages (uv build).""" session.log(f"Building sdist and wheel packages with py{session.python}.") diff --git a/pyproject.toml b/pyproject.toml index f490ed0..2d99058 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "robust-python-demo" -version = "0.24.0" +version = "0.25.0" description = "robust-python-demo" authors = [ { name = "Kyle Oliver", email = "56kyleoliver+cookiecutter-robust-python@gmail.com" }, diff --git a/scripts/setup-remote.py b/scripts/setup-remote.py index d6f0f67..8874eaf 100644 --- a/scripts/setup-remote.py +++ b/scripts/setup-remote.py @@ -37,10 +37,10 @@ def setup_remote(path: Path, repository_host: str, repository_path: str) -> None def get_parser() -> argparse.ArgumentParser: - """Creates the argument parser for setup-git.""" + """Creates the argument parser for setup-remote.""" parser: argparse.ArgumentParser = argparse.ArgumentParser( - prog="setup-git", - usage="python ./scripts/setup-remote.py . -h github.com -p 56kyle/robust-python-demo", + prog="setup-remote", + usage="python ./scripts/setup-remote.py . --host github.com --path 56kyle/robust-python-demo", description="Set up the provided cookiecutter-robust-python project's remote repo connection.", ) parser.add_argument( @@ -49,9 +49,11 @@ def get_parser() -> argparse.ArgumentParser: metavar="PATH", help="Path to the repo's root directory (must already exist).", ) - parser.add_argument("-h", "--host", dest="repository_host", help="Repository host (e.g., github.com, gitlab.com).") parser.add_argument( - "-p", "--path", dest="repository_path", help="Repository path (e.g., user/repo, group/subgroup/repo)." + "--host", dest="repository_host", help="Repository host (e.g., github.com, gitlab.com)." + ) + parser.add_argument( + "--path", dest="repository_path", help="Repository path (e.g., user/repo, group/subgroup/repo)." ) return parser diff --git a/uv.lock b/uv.lock index 9a4c35a..c419310 100644 --- a/uv.lock +++ b/uv.lock @@ -1092,7 +1092,7 @@ wheels = [ [[package]] name = "robust-python-demo" -version = "0.24.0" +version = "0.25.0" source = { editable = "." } dependencies = [ { name = "loguru" },