Note
This repository is a template of FastAPI with Dependency Injector
Copy .envrc.example
to .envrc
for setting environment variables with direnv
cp .envrc.example .envrc
direnv allow
✔️ Create Virtual Environment with uv
uv sync
- Activate virtualenv(
.venv
)
source .venv/bin/activate
pre-commit: Link
pre-commit install -t pre-commit
pre-commit install -t pre-push
🖱️ Run Manually
pre-commit run
🖱️ How to Skip Hooks
After installing the hooks, you can use the --no-verify
option to skip it.
git commit --no-verify
git push --no-verify
Tip
For details on the make commands, refer to the Makefile
make run
make test
Check lint & format only
make check
Format
make format
- Maintainer: @devbruce