Skip to content

Commit

Permalink
Move back to pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcwhirter committed Feb 3, 2025
1 parent f7364b9 commit d1cad7d
Show file tree
Hide file tree
Showing 6 changed files with 1,253 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"uname": "uname -a",
"lets version": "lets --version",
"node version": "node --version",
"pdm version": "pdm --version",
"pnpm version": "pnpm --version",
"python version": "python --version",
"uv version": "uv --version",
"wasm-tools version": "wasm-tools --version",
"wasmtime version": "wasmtime --version",
"zig version": "zig version",
Expand Down Expand Up @@ -87,5 +87,8 @@
}
}
},
"remoteEnv": {
"HOSTNAME": "pi-day-2025-with-py"
},
"remoteUser": "klmcw"
}
2 changes: 1 addition & 1 deletion .devcontainer/vsc-run-pytests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fi
if [ "$ENABLE_TESTS" = "1" ]
then
echo_eval lets create
echo_eval uv run pytest
echo_eval pdm run pytest
rc=$?
echo rc=${rc}
fi
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,5 +183,5 @@ docgen_tmp/

# End of https://www.toptal.com/developers/gitignore/api/python,zig

uv.lock
.pdm-python
.zig-cache/
14 changes: 7 additions & 7 deletions lets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ shell: bash
commands:
create:
description: Create .venv
cmd: uv sync --group dev
cmd: pdm sync --group dev

clean:
description: Clean build artifacts
Expand Down Expand Up @@ -36,7 +36,7 @@ commands:
cmd: |
source $HOME/.local/.bash.d/gitignore.io
gi -s -- python,zig >.gitignore
echo -e '\nuv.lock\n.zig-cache/' >>.gitignore
echo -e '\n.pdm-python\n.zig-cache/' >>.gitignore
pybuild:
Expand All @@ -51,7 +51,7 @@ commands:

gen:
description: Build wasm & ui; then start ui
cmd: uv run python -m pi_py.pi_digits "$@"
cmd: pdm run python -m pi_py.pi_digits "$@"

ui:
depends: [ allclean, pybuild, wasmbuild, uibuild, uistart ]
Expand All @@ -62,10 +62,10 @@ commands:


flake8:
cmd: uv run flake8 pi_py/
cmd: pdm run flake8 pi_py/

mypy:
cmd: uv run mypy pi_py/
cmd: pdm run mypy pi_py/

test:
depends: [ pytest, wasmtest ]
Expand All @@ -78,7 +78,7 @@ commands:

testcov:
description: Produce test coverage xml and term reports
cmd: uv run pytest --cov=pi_py --cov-report xml:coverage.xml --cov-report term
cmd: pdm run pytest --cov=pi_py --cov-report xml:coverage.xml --cov-report term

tox:
cmd: uv run tox "$@"
cmd: pdm run tox "$@"
Loading

0 comments on commit d1cad7d

Please sign in to comment.