Skip to content

Pythonプロジェクト用のテンプレートリポジトリです。修正要望あればPR開けるかIssuesに投げてください。

Notifications You must be signed in to change notification settings

athenatech-jp/python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-template

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

Setup

  1. Installation | uv を参考にして、 uv コマンドをインストールする
# macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | less
  1. 依存関係のインストール / pre-commitの設定
  • 下記を実行すると、依存関係のインストールと pre-commit の設定が実行されます。
  • uv syncuv run pre-commit install を実行しても同じです。
make init
  1. Claude Code用に API Key を設定する
  • 以下のコマンドを実行すると ~/.claude/settings.json に Claude API Key が設定されます。
  • すでに設定されている場合は上書きされます。
make setup-claude-api-key

※参考: [Claude Code]任意のAPIを設定する

Pull Request で Claude によるコードレビューを実行する

  • Pull Request 内で @claude とメンションするとレビューが実行されます。

Important

  • AnthropicのAPIキーが必要です。GitHub Secretsに ANTHROPIC_API_KEY を設定してください。
  • GitHub Appページで、リポジトリアクセスを許可してください。

About

Pythonプロジェクト用のテンプレートリポジトリです。修正要望あればPR開けるかIssuesに投げてください。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published