Skip to content
Snippets Groups Projects
Unverified Commit b17b2dc3 authored by Oliver Smith's avatar Oliver Smith
Browse files

CI: mypy: make compatible with "pmbootstrap ci" (MR 29)

parent 399749b6
No related branches found
No related tags found
No related merge requests found
#!/bin/sh -e
# Description: static type checking for python scripts
# https://postmarketos.org/pmb-ci
if [ "$(id -u)" = 0 ]; then
set -x
apk -q add py3-argcomplete py3-mypy
exec su "${TESTUSER:-build}" -c "sh -e $0"
fi
set -x
mypy mrhlpr.py mrtest.py
......@@ -8,6 +8,6 @@ flake8:
- .ci/flake8.sh
mypy:
before_script:
- apk add py3-argcomplete py3-mypy
- adduser -D build
script:
- mypy mrhlpr.py mrtest.py
- .ci/mypy.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment