Files
cpc-price-cli/.envrc
Timmy e10563b405 Use rich for table output; add uv project setup
- Replace manual column-width formatting with rich.Table
- Add pyproject.toml, uv.lock for dependency management
- Add .python-version (3.11) and .envrc for direnv/uv auto-setup
- Add main.py scaffold

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 20:34:19 +08:00

16 lines
300 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export PATH="/opt/homebrew/bin:$PATH"
# 建 .venv第一次用
if [ ! -d ".venv" ]; then
uv venv
fi
# 啟用direnv 用 PATH 方式)
export VIRTUAL_ENV="$PWD/.venv"
export PATH="$VIRTUAL_ENV/bin:$PATH"
# 有 pyproject.toml 就裝套件
if [ -f "pyproject.toml" ]; then
uv sync
fi