gitlabci: use mypy

parent 45aa6eb7
...@@ -22,6 +22,11 @@ test:flake8: ...@@ -22,6 +22,11 @@ test:flake8:
script: script:
- python3 -m flake8 --max-line-length=100 . && echo "OK, no flake8 errors detected" - python3 -m flake8 --max-line-length=100 . && echo "OK, no flake8 errors detected"
test:mypy:
<<: *test
script:
- ci/mypy-run.sh
test:pylint: test:pylint:
<<: *test <<: *test
script: script:
......
#!/usr/bin/env bash
set -o nounset -o xtrace -o errexit
source "$(dirname "$0")/common.sh"
PYFILES=$(find . \
-path ./.git -prune -o \
-path ./contrib -o \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
-name '*.py' -print -o \
-type f -exec grep -qsm1 '^#!.*\bpython' '{}' \; -print)
set -e
${PYTHON} -m mypy --ignore-missing-imports ${PYFILES}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment