Skip to content

Commit 6469fd8

Browse files
committed
Replace mypy with ty in lint.yml workflow
Update the lint workflow to use ty instead of mypy for type checking. Verified locally: - ✅ ruff check passed - ✅ ty check passed - ✅ all 153 tests passed
1 parent 31423af commit 6469fd8

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
ruff check tests
2828
2929
30-
mypy:
31-
name: mypy
30+
typecheck:
31+
name: ty typecheck
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
@@ -37,11 +37,15 @@ jobs:
3737
uses: actions/[email protected]
3838
with:
3939
python-version: '3.13'
40-
cache: 'pip'
41-
- run: pip install --upgrade mypy types-requests types-urllib3
42-
- name: mypy
43-
uses: liskin/gh-problem-matcher-wrap@v2
40+
- name: Install uv
41+
uses: astral-sh/setup-uv@v6
4442
with:
45-
linters: mypy
46-
run: |
47-
mypy json2xml
43+
enable-cache: true
44+
- name: Install dependencies
45+
run: |
46+
uv venv
47+
uv pip install -e .
48+
- name: Run ty
49+
run: |
50+
source .venv/bin/activate
51+
uvx ty check json2xml tests

0 commit comments

Comments
 (0)