#!/bin/sh -e

cd "$(dirname "$0")"

echo "=== Nuking old .pyc files..."
find go/ -name '*.pyc' -delete
find go/ -name '__pycache__' -delete
echo "=== Erasing previous coverage data..."
coverage erase
echo "=== Running tests..."
# This is necessary so that we import test modules from the working dir instead
# of the installed package.
export PYTHONPATH=.
./run-tests-pytest.sh --cov=go
echo "=== Checking for PEP-8 violations..."
pep8 --repeat go | grep -v '^go/base/migrations/' | tee pep8.txt
echo "=== Done."

#!/bin/sh -e

cd "$(dirname "$0")"

echo "=== Nuking old .pyc files..."
find go/ -name '*.pyc' -delete
find go/ -name '__pycache__' -delete
echo "=== Erasing previous coverage data..."
coverage erase
echo "=== Running tests..."
# This is necessary so that we import test modules from the working dir instead
# of the installed package.
export PYTHONPATH=.
./run-tests-pytest.sh --cov=go
echo "=== Checking for PEP-8 violations..."
pep8 --repeat go | grep -v '^go/\(base\|billing\)/migrations/' | tee pep8.txt
echo "=== Done."

Exclude new billing migrations from pep8. (@Hodgestar)
Exclude new billing migrations from pep8. (@Hodgestar)
