Skip to content

Commit be84a6c

Browse files
chore: extract setup steps into scripts/setup.sh and add Copilot workflow (#59)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: deviantintegral <255023+deviantintegral@users.noreply.github.com>
1 parent e6ce29c commit be84a6c

4 files changed

Lines changed: 39 additions & 1 deletion

File tree

.claude/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"hooks": [
77
{
88
"type": "command",
9-
"command": "cd \"$CLAUDE_PROJECT_DIR\" && uv sync --dev --all-extras && uv run pre-commit install --install-hooks",
9+
"command": "\"$CLAUDE_PROJECT_DIR/scripts/setup.sh\"",
1010
"timeout": 120,
1111
"statusMessage": "Syncing dependencies and installing pre-commit hooks..."
1212
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Copilot Setup Steps"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/copilot-setup-steps.yml
8+
pull_request:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
12+
jobs:
13+
copilot-setup-steps:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
25+
26+
- name: Run setup script
27+
run: bash scripts/setup.sh

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Add packages with:
2222
uv add <package>
2323
```
2424

25+
## Pull Requests
26+
27+
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.
28+
2529
## Development
2630

2731
```bash

scripts/setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")/.."
5+
6+
uv sync --dev --all-extras
7+
uv run pre-commit install --install-hooks

0 commit comments

Comments
 (0)