Created
January 24, 2025 13:19
-
-
Save cdugeai/a99cac2fa22eda7752e5509d2688d391 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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