File tree Expand file tree Collapse file tree 1 file changed +38
-14
lines changed
Expand file tree Collapse file tree 1 file changed +38
-14
lines changed Original file line number Diff line number Diff line change @@ -29,33 +29,57 @@ jobs:
2929 with :
3030 args : ' format --check --verbose'
3131
32- mypy-python :
33- name : Check Python static typing
32+ pyright :
33+ name : Verify static typing
3434 runs-on : ubuntu-latest
3535 steps :
3636 - id : checkout
3737 name : Checkout
3838 uses : actions/checkout@v6
3939
40- - id : install-uv
41- name : Install uv
42- uses : astral-sh/setup-uv@v7
40+ - name : Setup uv
41+ uses : astral-sh/setup-uv@v6
4342 with :
44- version : " latest"
43+ version : ' latest'
4544 enable-cache : true
4645 cache-dependency-glob : ' **/pyproject.toml'
4746
48- - id : install-python
49- name : Install Python
50- run : uv python install 3.13
51-
5247 - id : install-python-dependencies
5348 name : Install Python dependencies
54- run : uv sync --extra mypy
49+ run : uv sync --extra dev
50+
51+ - id : pyright
52+ name : Run pyright
53+ timeout-minutes : 10
54+ run : uv run pyright
55+
56+ vulture :
57+ name : Detect dead code
58+ runs-on : ubuntu-latest
59+ steps :
60+ - id : checkout
61+ name : Checkout
62+ uses : actions/checkout@v4
63+
64+ - name : Setup uv
65+ uses : astral-sh/setup-uv@v6
66+ with :
67+ version : ' latest'
68+ enable-cache : true
69+ cache-dependency-glob : ' **/pyproject.toml'
5570
56- - id : mypy
57- name : Run mypy
58- run : uv run mypy ./ --ignore-missing-imports
71+ - id : install-python-dependencies
72+ name : Install Python dependencies
73+ run : uv sync --extra dev
74+
75+ - id : vulture
76+ name : Run vulture
77+ timeout-minutes : 10
78+ run : >-
79+ uv run vulture
80+ --min-confidence 90
81+ --exclude "tests/*,_notebooks/*,docs/*"
82+ ./
5983
6084 test-python :
6185 name : Test Python code
You can’t perform that action at this time.
0 commit comments