Pythonプロジェクト用のテンプレートリポジトリ
.
├── .github
│ └── workflows
│ ├── claude-review.yml
│ ├── ruff.yml
│ └── type-check.yml
├── src
│ ├── __init__.py
│ └── sample.py
├── tests
│ ├── __init__.py
│ └── test_sample.py
├── .gitignore
├── .pre-commit-config.yaml
├── Makefile
├── README.md
├── pyproject.toml
└── uv.lock
- Installation | uv を参考にして、
uvコマンドをインストールする
# macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | less- 依存関係のインストール / pre-commitの設定
- 下記を実行すると、依存関係のインストールと pre-commit の設定が実行されます。
uv syncとuv run pre-commit installを実行しても同じです。
make init- Claude Code用に API Key を設定する
- 以下のコマンドを実行すると
~/.claude/settings.jsonに Claude API Key が設定されます。 - すでに設定されている場合は上書きされます。
make setup-claude-api-key- Pull Request 内で @claude とメンションするとレビューが実行されます。
Important
- AnthropicのAPIキーが必要です。GitHub Secretsに
ANTHROPIC_API_KEYを設定してください。 - GitHub Appページで、リポジトリアクセスを許可してください。