From 2f729ee7dce9553a5e49e9f99dcd72e91eb7e6fc Mon Sep 17 00:00:00 2001 From: Gijs Molenaar Date: Fri, 10 Aug 2018 13:07:09 +0200 Subject: [PATCH] enable mypy --- docker/Dockerfile.ubuntu_bionic_py3_mypy | 28 ++++++++++++++++++++++++ docker/Dockerfile.ubuntu_bionic_py3_pep8 | 1 - mypy.ini | 4 ++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docker/Dockerfile.ubuntu_bionic_py3_mypy create mode 100644 mypy.ini 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