Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_commit": "f46d0e9611ca496d3600e43343a01dcfb86caee6",
"_commit": "c6577daf23a9972a456f2331e679b07c049a264a",
"_template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
"add_rust_extension": false,
"author": "Kyle Oliver",
Expand Down
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "C:\\Users\\56kyl\\source\\repos\\cookiecutter-robust-python",
"commit": "f46d0e9611ca496d3600e43343a01dcfb86caee6",
"commit": "c6577daf23a9972a456f2331e679b07c049a264a",
"checkout": null,
"context": {
"cookiecutter": {
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## v0.25.0 (2025-09-18)

## v0.24.0 (2025-08-01)

## v0.23.0 (2025-08-01)
Expand Down
15 changes: 6 additions & 9 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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...")
Expand All @@ -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}.")
Expand All @@ -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...")
Expand Down Expand Up @@ -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}.")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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" },
Expand Down
12 changes: 7 additions & 5 deletions scripts/setup-remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading