From 1b3237ba383ba644628defcfde443e9a4e5af69c Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sat, 7 Nov 2020 11:00:30 +0100 Subject: Add basic mypy support Silence some errors, run mypy in CI Adding annotations to functions/classes will make mypy check them. --- .gitlab-ci/test-msys2-meson.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.gitlab-ci') 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 -- cgit v1.2.1