48ea0781ee
All code has been cleaned to pass hacking checks; only N301 (one import per line) has been disabled now; VMs creation rollback has been implemented for vms creation errors. Change-Id: I8d973dfa0c01c8d595aff5fbaf47a9f81d55f74f
27 lines
612 B
Bash
Executable File
27 lines
612 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ${VIRTUAL_ENV:+x} ]
|
|
then echo "VIRTUAL_ENV is already specified"
|
|
else export VIRTUAL_ENV=.venv
|
|
fi
|
|
|
|
echo "VIRTUAL_ENV = $VIRTUAL_ENV"
|
|
|
|
echo "Running pep8/hacking.py checks"
|
|
echo "=============================="
|
|
|
|
# python tools/hacking.py --doctest
|
|
|
|
# Until all these issues get fixed, ignore.
|
|
PEP8='python tools/hacking.py --ignore=N301'
|
|
|
|
EXCLUDE='--exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*'
|
|
EXCLUDE+=',*egg,build,*hacking.py'
|
|
${PEP8} ${EXCLUDE} .
|
|
|
|
${PEP8} --filename=savanna* bin
|
|
|
|
! pyflakes savanna/ | grep "imported but unused\|redefinition of function"
|