File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 11name : Code Quality
2-
32on :
43 push :
54 branches : [main]
65 pull_request :
76 branches : [main]
87 workflow_dispatch :
9-
108concurrency :
119 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1210 cancel-in-progress : true
13-
1411jobs :
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
You can’t perform that action at this time.
0 commit comments