#!/bin/bash if [[ $(python -V 2>&1) =~ "Python 2" ]] then nosetests --nocapture --with-doctest --doctest-tests -I ^test.py $* && \ pep8 --ignore=E402 screenplain tests else python test.py && pep8 --ignore=E402 screenplain tests fi