Skip to content

Add UV Python project template - #8

Merged
johnnygreco merged 1 commit into
mainfrom
johnny/python-project-template
Jul 7, 2026
Merged

Add UV Python project template#8
johnnygreco merged 1 commit into
mainfrom
johnny/python-project-template

Conversation

@johnnygreco

Copy link
Copy Markdown
Collaborator

Summary

  • add a minimal packaged Python project under projects/python-project-template
  • manage runtime and development dependencies with uv and a committed uv.lock
  • export a hash-pinned requirements.txt so nSpect can inspect resolved runtime dependencies
  • include a typed Click CLI, tests with 100% coverage, Ruff, ty, packaging metadata, and usage documentation

Why

Research projects need a small, reusable starting point that is reproducible,
testable, and visible to NVIDIA dependency scanning.

Validation

  • uv sync --locked
  • uv run ruff format --check .
  • uv run ruff check .
  • uv run ty check
  • uv run pytest (2 passed, 100% coverage)
  • uv build
  • uv lock --check
  • regenerated the nSpect requirements export with uv export --locked
  • git diff --check

Signed-off-by: Johnny Greco <jogreco@nvidia.com>
@johnnygreco
johnnygreco merged commit 3180366 into main Jul 7, 2026
2 checks passed
@johnnygreco
johnnygreco deleted the johnny/python-project-template branch July 20, 2026 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant