diff --git a/.claude/settings.json b/.claude/settings.json index 9702ce8..7abc4dc 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "cd \"$CLAUDE_PROJECT_DIR\" && uv sync --dev --all-extras && uv run pre-commit install --install-hooks", + "command": "\"$CLAUDE_PROJECT_DIR/scripts/setup.sh\"", "timeout": 120, "statusMessage": "Syncing dependencies and installing pre-commit hooks..." } diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..7cdaa91 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,27 @@ +name: "Copilot Setup Steps" + +on: + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Run setup script + run: bash scripts/setup.sh diff --git a/AGENTS.md b/AGENTS.md index 6cf5984..ece356a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,6 +22,10 @@ Add packages with: uv add ``` +## Pull Requests + +Use [conventional commit](https://www.conventionalcommits.org/) formatting for pull request titles and descriptions. The pull request title and description should typically match the message and description of the first commit. + ## Development ```bash diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..be3c262 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +cd "$(dirname "$0")/.." + +uv sync --dev --all-extras +uv run pre-commit install --install-hooks