#!/bin/sh # this pre-push hook runs style checks and unit tests in python 3.6, 3.7, and 3.8 using tox. set -e TOX_PARALLEL_NO_SPINNER=1, PY_COLORS=0 start_time=`date +%s` tox -e flake8,pylint,docstyle,black-check,twine --parallel all ./ci-scripts/displaytime.sh 'flake8,pylint,docstyle,black-check,twine' $start_time start_time=`date +%s` tox -e sphinx,doc8 --parallel all ./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time start_time=`date +%s` tox -e py37,py38,py39 --parallel all -- tests/unit ./ci-scripts/displaytime.sh 'py37,py38,py39 unit' $start_time