This fixes the build in the same way I fixed it for bravado. It also makes sure we run mypy as well as tests on Python 3.6 locally, and fixes installation / usage of pre-commit on systems where python2.7 is not in /usr/bin.
Coverage remained the same at 99.023% when pulling f56c110f8fc594d0f6eb0f1f546ba607e24e8a75 on fix-build-restrict-pytest into e64856c51bbd7b570ffce1f8ebe1ab091e64a577 on master.
This fixes the build in the same way I fixed it for bravado. It also makes sure we run mypy as well as tests on Python 3.6 locally, and fixes installation / usage of pre-commit on systems where
python2.7
is not in/usr/bin
.