From 957313063076e345771eb24e98cbdc9fc2f1f641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 4 Feb 2020 05:41:42 +0100 Subject: [PATCH] :white_check_mark: Lint first in tests, to error out faster (#948) --- scripts/test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index e61c8e3b6..d1a4cf630 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,9 +7,8 @@ set -x 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 ${@} bash ./scripts/lint.sh # Check README.md is up to date diff --brief docs/index.md README.md +export PYTHONPATH=./docs/src +pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@}