File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 2424
2525 - name : Check code style with ruff
2626 run : ruff format --diff
27+
28+ - name : Check typing with mypy
29+ run : LIBSSH2_VERSION=1.11.1 LIBGIT2_VERSION=1.9.1 /bin/sh build.sh mypy
Original file line number Diff line number Diff line change @@ -262,6 +262,16 @@ if [ "$1" = "test" ]; then
262262 $PREFIX /bin/pytest --cov=pygit2
263263fi
264264
265+ # Type checking
266+ if [ " $1 " = " mypy" ]; then
267+ shift
268+ if [ -n " $WHEELDIR " ]; then
269+ $PREFIX /bin/pip install $WHEELDIR /pygit2* -$PYTHON_TAG -* .whl
270+ fi
271+ $PREFIX /bin/pip install -r requirements-test.txt
272+ $PREFIX /bin/mypy pygit2
273+ fi
274+
265275# Test .pyi stub file
266276if [ " $1 " = " stubtest" ]; then
267277 shift
Original file line number Diff line number Diff line change 11pytest
22pytest-cov
3+ mypy
You can’t perform that action at this time.
0 commit comments