Install uv: https://docs.astral.sh/uv/getting-started/installation/
git init
uv sync --dev
git add .
git commit -m "Initial commit"
uv run pre-commit install # optionalTo execute your software you have two options:
Option 1: Direct execution
uv run fastapi run main.pyOption 2: Run as installed package
uvx --from . fastdocJust run uv run fastapi dev main.py and you are good to go!
To update your project with the latest changes from the template, run:
uvx --with copier-template-extensions copier update --trustYou can keep your previous answers by using:
uvx --with copier-template-extensions copier update --trust --defaultspre-commit is a set of tools that help you ensure code quality. It runs every time you make a commit.
First, install pre-commit:
uv tool install pre-commitThen install pre-commit hooks:
pre-commit installTo run pre-commit on all files:
pre-commit run --all-filesRun uv add <package-name> to install a package. For example:
uv add requestsIf you are using visual studio code install the recommended extensions
A basic docker image is already provided, run:
docker compose up --build watch- uv
- pre-commit (optional)