mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 10:36:39 +00:00
Reenabled Black --check for python 3.7, issue is fixed. see https://github.com/ambv/black/issues/494
18 lines
575 B
Bash
Executable file
18 lines
575 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])"
|
|
export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"`
|
|
|
|
# Remove temporary DB
|
|
if [ -f ./test.db ]; then
|
|
rm ./test.db
|
|
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
|
|
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
|