1 2 3 4 5 6 7 8
#!/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