]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:art: Reenable Black --check for Python 3.7 (#229)
authorzamiramir <40475662+zamiramir@users.noreply.github.com>
Wed, 15 May 2019 14:29:36 +0000 (16:29 +0200)
committerSebastián Ramírez <tiangolo@gmail.com>
Wed, 15 May 2019 14:29:36 +0000 (18:29 +0400)
Reenabled Black --check for python 3.7, issue is fixed.
see https://github.com/ambv/black/issues/494

scripts/test.sh

index e2e6d94c9903d3af9283634b1bf0d7f914c4d2dc..c94787cc1d9e83a8496a6c5fc11fb039b844dec5 100755 (executable)
@@ -14,9 +14,5 @@ fi
 export PYTHONPATH=./docs/src
 pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}
 mypy fastapi --disallow-untyped-defs --follow-imports=skip
-if [ "${PYTHON_VERSION}" = '3.7' ]; then
-    echo "Skipping 'black' on 3.7. See issue https://github.com/ambv/black/issues/494"
-else
-    black fastapi tests --check
-fi
+black fastapi tests --check
 isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --recursive --check-only --thirdparty fastapi fastapi tests