Commit 870b2f4f authored by Petr Špaček's avatar Petr Špaček

Merge branch 'ci-mypy-tools' into 'master'

ci/mypy: run checks separately for tools

See merge request !151
parents 7f462b3c a94c8ef7
Pipeline #44768 passed with stage
in 2 minutes and 2 seconds
...@@ -3,11 +3,15 @@ set -o nounset -o errexit ...@@ -3,11 +3,15 @@ set -o nounset -o errexit
source "$(dirname "$0")/common.sh" source "$(dirname "$0")/common.sh"
PYFILES=$(find . \ PYFILES=$(find . \
-path ./.git -prune -o \ -path ./.git -prune -o \
-path ./contrib -o \ -path ./contrib -o \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \ -path ./tools -prune -o \
-name '*.py' -print -o \ -type d -exec test -e '{}/__init__.py' \; -print -prune -o \
-type f -exec grep -qsm1 '^#!.*\bpython' '{}' \; -print) -name '*.py' -print -o \
-type f -exec grep -qsm1 '^#!.*\bpython' '{}' \; -print)
set -e set -e
${PYTHON} -m mypy --ignore-missing-imports ${PYFILES} ${PYTHON} -m mypy --ignore-missing-imports ${PYFILES}
# tools
${PYTHON} -m mypy --ignore-missing-imports tools
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