Skip to content
Snippets Groups Projects
Verified Commit 2d90b558 authored by Oliver Smith's avatar Oliver Smith Committed by Newbyte
Browse files

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

parent c18bff1c
No related branches found
No related tags found
1 merge request!2258Add Mypy CI and fix instances where it fails
Pipeline #189857 passed
#!/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 pmbootstrap.py
......@@ -59,7 +59,5 @@ mr-settings:
mypy:
stage: lint
before_script:
- apk add py3-argcomplete py3-mypy
script:
- mypy pmbootstrap.py
- ".ci/mypy.sh"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment