Minimum Litestar Implementation.
$ poetry shell
$ poetry install
$ litestar run --reload
$ curl localhost:8000/ -w "\n"
If you want to use this app to test a local version of Litestar
, the litestar dependency in
pyproject.toml
to:
litestar = {path = "../litestar", develop = true}
This assumes that Litestar
and this app exist in the same directory.
Run uvicorn with:
$ poetry run uvicorn main:app --reload --reload-dir "../litestar/litestar"
After cloning:
$ pre-commit install
Run on all files:
$ pre-commit run --all-files
Run a specific hook:
$ pre-commit run mypy --all-files