Skip black only on pypy3 and not Python 3.7
@@ -13,11 +13,8 @@ set -x
PYTHONPATH=. ${PREFIX}pytest --ignore venv --cov=uvicorn --cov=tests --cov-report=term-missing ${@}
${PREFIX}coverage html
${PREFIX}autoflake --recursive uvicorn tests
-if [ "${PYTHON_VERSION}" = '3.7' ]; then
- echo "Skipping 'black' on 3.7. See issue https://github.com/ambv/black/issues/494"
-# black triggers known bug in PyPy3-3.6-7.1.1: https://bitbucket.org/pypy/pypy/issues/2985
-elif [ "${PYTHON_VERSION}" = '3.6' ] && [ "${TRAVIS_PYTHON_VERSION}" != 'pypy3' ]; then
+if [ "${TRAVIS_PYTHON_VERSION}" == 'pypy3 ]; then
+ echo "Skipping 'black' on pypy3.6-7.1.1. See issue https://bitbucket.org/pypy/pypy/issues/2985"
+else
${PREFIX}black uvicorn tests --check
-elif [ "${PYTHON_VERSION}" = '3.5' ]; then
- echo "Skipping black, unavailable on 3.5."
fi
