summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 11:00:30 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2020-11-07 11:10:01 +0100
commit1b3237ba383ba644628defcfde443e9a4e5af69c (patch)
treefff15e73a0c5973ee105b11301f021edd8320a51 /.gitlab-ci
parent3e5eece5e1e5d77d2c5ea355bc8637549388b9d5 (diff)
downloadgobject-introspection-1b3237ba383ba644628defcfde443e9a4e5af69c.tar.gz
Add basic mypy support
Silence some errors, run mypy in CI Adding annotations to functions/classes will make mypy check them.
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/test-msys2-meson.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci/test-msys2-meson.sh b/.gitlab-ci/test-msys2-meson.sh
index 9f145e5b..81a82437 100644
--- a/.gitlab-ci/test-msys2-meson.sh
+++ b/.gitlab-ci/test-msys2-meson.sh
@@ -31,7 +31,7 @@ pacman --noconfirm -S --needed \
export CCACHE_BASEDIR="${CI_PROJECT_DIR}"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
-pip3 install --upgrade --user meson==0.50.1 flake8
+pip3 install --upgrade --user meson==0.50.1 flake8 mypy
export PATH="$HOME/.local/bin:$PATH"
export CFLAGS="-Werror"
@@ -43,3 +43,4 @@ meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib
cd ..
python3 -m flake8 --count
+python3 -m mypy . \ No newline at end of file