Skip to content

Instantly share code, notes, and snippets.

@cdugeai
Created January 24, 2025 13:19
Show Gist options
  • Save cdugeai/a99cac2fa22eda7752e5509d2688d391 to your computer and use it in GitHub Desktop.
Save cdugeai/a99cac2fa22eda7752e5509d2688d391 to your computer and use it in GitHub Desktop.
uv init
mv hello.py main.py
uv add mypy coverage pytest ruff
cat <<EOT > Makefile
run:
uv run python3 main.py
test:
uv run coverage run -m pytest
lint:
uv run ruff check
format:
uv run ruff format
mypy:
uv run mypy --strict .
cov-report:
uv run coverage report
cov-report-html:
uv run coverage html
cov-report-html-open:
uv run open tests/coverage-report/index.html
EOT
mkdir src
touch src/__init__.py
mkdir tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment