diff --git a/docker/Dockerfile.ubuntu_bionic_py3_mypy b/docker/Dockerfile.ubuntu_bionic_py3_mypy new file mode 100644 index 00000000..e619d91e --- /dev/null +++ b/docker/Dockerfile.ubuntu_bionic_py3_mypy @@ -0,0 +1,28 @@ +FROM ubuntu:bionic + +ADD docker/docker-apt-install /usr/local/bin/docker-apt-install +RUN docker-apt-install \ + gir1.2-gtk-3.0 \ + gir1.2-notify-0.7 \ + libnotify4 \ + python3-gi \ + python3-dbus \ + python3-nacl \ + python3-requests-oauthlib \ + python3-future \ + python3-dateutil \ + python3-repoze.lru \ + python3-pip \ + python3-mock \ + python3-setuptools \ + python3-pytest \ + python3-cryptography \ + python3-qrcode \ + python3-pillow \ + pep8 \ + mypy + +ADD . /code +WORKDIR /code +RUN mypy eduvpn --ignore-missing-imports + diff --git a/docker/Dockerfile.ubuntu_bionic_py3_pep8 b/docker/Dockerfile.ubuntu_bionic_py3_pep8 index c0d45698..70a8a6f2 100644 --- a/docker/Dockerfile.ubuntu_bionic_py3_pep8 +++ b/docker/Dockerfile.ubuntu_bionic_py3_pep8 @@ -25,4 +25,3 @@ RUN docker-apt-install \ ADD . /code WORKDIR /code RUN pep8 eduvpn --ignore=E501,E402,W391,W292 -#RUN mypy eduvpn diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000..30eb5f46 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,4 @@ +[mypy] + +[mypy-eduvpn.other_nm] +ignore_errors = True