mirror of https://github.com/encode/starlette.git
15 lines
301 B
Plaintext
15 lines
301 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
export PREFIX=""
|
||
|
if [ -d 'venv' ] ; then
|
||
|
export PREFIX="venv/bin/"
|
||
|
fi
|
||
|
export SOURCE_FILES="starlette tests"
|
||
|
|
||
|
set -x
|
||
|
|
||
|
${PREFIX}isort --check --diff --project=starlette $SOURCE_FILES
|
||
|
${PREFIX}black --check --diff $SOURCE_FILES
|
||
|
${PREFIX}flake8 $SOURCE_FILES
|
||
|
${PREFIX}mypy $SOURCE_FILES
|