uvをインストール: https://docs.astral.sh/uv/getting-started/installation/ もしくはnixを使う
# このテンプレートで開発する場合
uv sync
# このテンプレートを再現したい場合
uv init
uv add typer rich textual
uv add --dev ruffmain.py と textual.py を作ってコードを貼り付ける
# lint
uv run ruff check --fix
uv run ruff check --watch
# format
uv run ruff format
# type check
uvx ty
# execute
uv run main.py- VS Code で >Python: Select Interpreter から ./.venv/bin/python を指定してパッケージを認識させる
https://docs.astral.sh/uv/ https://docs.astral.sh/ruff/ https://typer.tiangolo.com/ https://rich.readthedocs.io/en/latest/