From 6a1b0b31f0fbfa59a78a8b9f4f07bf9ed3f91cdf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 4 Jun 2018 22:54:01 +0200 Subject: Add more typing and use mypy in the CI --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 264b710..20426f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,14 @@ pyflakes: - apt-get -qqy install --no-install-recommends pyflakes3 - pyflakes3 ./libmat2 +mypy: + stage: linting + script: + - apt-get -qqy update + - apt-get -qqy install --no-install-recommends python3-pip + - pip3 install mypy + - mypy mat2 libmat2/*.py --ignore-missing-imports + tests: stage: test script: -- cgit v1.3