Skip to content

qomaeng/python-workspace-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Workspace Template

Commands

  • Install (package, dependencies)
$ uv sync --all-packages [--dev] [--refresh]
  • Start
$ uv run --package <PACKAGE> <COMMAND>
  • lint/fix/format
# Lint check
$ uv run ruff check <PACKAGE_DIR>
$ uv run ruff format --check <PACKAGE_DIR>

# Lint fix
$ uv run ruff check -fix <PACKAGE_DIR>

# Format
$ uv run ruff format <PACKAGE_DIR>
$ uv run black <PACKAGE_DIR>
  • test/coverage
$ uv run pytest                     # Test (only)
$ uv run coverage run -m pytest     # Test & Coverage
$ uv run coverage html              # Report coverage (HTML)

$ xdg-open htmlcov/index.html       # Linux
$ open htmlcov/index.html           # macOS
$ Start-Process htmlcov/index.html  # PowerShell

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages