File tree Expand file tree Collapse file tree 5 files changed +1107
-1202
lines changed Expand file tree Collapse file tree 5 files changed +1107
-1202
lines changed Original file line number Diff line number Diff line change 1- name : Mypy Checks
1+ name : Ty Type Checks
22
33on :
44 pull_request :
@@ -10,7 +10,7 @@ concurrency:
1010 cancel-in-progress : true
1111
1212jobs :
13- mypy :
13+ ty :
1414 runs-on : ubuntu-latest
1515 timeout-minutes : 20
1616
3838 done
3939 echo "python_files=${python_files[*]}" >> $GITHUB_ENV
4040
41- - name : Add MyPy annotator
42- uses :
pr-annotators/[email protected] 43-
44- - name : Run mypy
41+ - name : Run ty
4542 if : ${{ env.python_files != '' }}
4643 run : |
47- echo "Running mypy on changed files: ${{ env.python_files }}"
48- uv run mypy --no-pretty --show-absolute-path ${{ env.python_files }}
44+ echo "Running ty on changed files: ${{ env.python_files }}"
45+ uv run ty check --output-format concise --python-version 3.12 --exclude "**/tests/**" --exclude "**/codegen_tests/**" ${{ env.python_files }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ dev-dependencies = [
8181 " pytest>=8.3.3" ,
8282 " pytest-cov>=6.1.0,<6.1.1" ,
8383 " ruff>=0.6.8" ,
84- " mypy[mypyc,faster-cache]>=1.13.0 " ,
84+ " ty>=0.0.1a10 " ,
8585 " pre-commit>=4.0.1" ,
8686 " pytest-xdist>=3.6.1,<4.0.0" ,
8787 " pytest-mock<4.0.0,>=3.14.0" ,
Original file line number Diff line number Diff line change 1+ # Ty type checker configuration
2+ # Based on the previous mypy.ini configuration
3+
4+ # Basic configuration - ty is still in early development
5+ # so configuration options are limited
You can’t perform that action at this time.
0 commit comments