Skip to content

Commit 0f5b8aa

Browse files
committed
feat: update other parts of the template to use ty
1 parent 140b658 commit 0f5b8aa

3 files changed

Lines changed: 4 additions & 20 deletions

File tree

.claude/commands/init-from-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Transform this generic template into a personalized starting point for your Pyth
4646
- Run `pytest` to execute test suite
4747
- Run `ruff check` for linting validation
4848
- Run `ruff format` for code formatting
49-
- Run `basedpyright` for type checking
49+
- Run `ty check` for type checking
5050
- Report success only if all commands pass (exit code 0)
5151

5252
### Validation
@@ -60,7 +60,7 @@ Transform this generic template into a personalized starting point for your Pyth
6060
- Verify tests pass (pytest exit code 0)
6161
- Ensure code passes linting (ruff check exit code 0)
6262
- Verify code formatting is correct (ruff format exit code 0)
63-
- Confirm type checking passes (basedpyright exit code 0)
63+
- Confirm type checking passes (ty exit code 0)
6464

6565
### Notes
6666

.claude/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"Bash(pytest:*)",
55
"Bash(ruff check:*)",
66
"Bash(ruff format:*)",
7-
"Bash(basedpyright:*)"
7+
"Bash(ty check:*)"
88
],
99
"deny": [
1010
"Edit(CHANGELOG.md)",
11-
"MultiEdit(CHANGELOG.md)",
1211
"Write(CHANGELOG.md)"
1312
]
1413
},

.github/workflows/code-quality.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,71 @@
11
name: Code Quality
2-
32
on:
43
push:
54
branches: [main]
65
pull_request:
76
branches: [main]
87
workflow_dispatch:
9-
108
concurrency:
119
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1210
cancel-in-progress: true
13-
1411
jobs:
1512
ruff:
1613
name: Ruff
1714
runs-on: ubuntu-latest
1815
steps:
1916
- uses: actions/checkout@v4
20-
2117
- name: Ruff Check
2218
uses: astral-sh/ruff-action@v3
2319
with:
2420
version: latest
25-
2621
- name: Ruff Format
2722
uses: astral-sh/ruff-action@v3
2823
with:
2924
version: latest
3025
args: format --check
31-
3226
pyright:
3327
name: Type Check
3428
runs-on: ubuntu-latest
3529
needs: ruff # Run after ruff
3630
steps:
3731
- uses: actions/checkout@v4
38-
3932
- name: Set up Python
4033
uses: actions/setup-python@v5
4134
with:
4235
python-version-file: ".python-version"
43-
4436
- name: Install uv
4537
uses: astral-sh/setup-uv@v5
4638
with:
4739
enable-cache: true
4840
cache-dependency-glob: "uv.lock"
49-
5041
- name: Install dependencies
5142
run: |
5243
uv venv
5344
uv sync --dev
54-
5545
- name: Run pyright
5646
run: |
5747
source .venv/bin/activate
58-
basedpyright
59-
48+
ty check
6049
pytest:
6150
name: Run Tests
6251
runs-on: ubuntu-latest
6352
needs: pyright # Run after pyright
6453
steps:
6554
- uses: actions/checkout@v4
66-
6755
- name: Set up Python
6856
uses: actions/setup-python@v5
6957
with:
7058
python-version-file: ".python-version"
71-
7259
- name: Install uv
7360
uses: astral-sh/setup-uv@v5
7461
with:
7562
enable-cache: true
7663
cache-dependency-glob: "uv.lock"
77-
7864
- name: Install dependencies
7965
run: |
8066
uv venv
8167
# Ensure dev dependencies including pytest are installed
8268
uv sync --dev
83-
8469
- name: Run pytest
8570
run: |
8671
source .venv/bin/activate

0 commit comments

Comments
 (0)