"flask-restful==0.3.5",
"flask-restful-swagger==0.19",
"html2text==2016.1.8",
- "matplotlib==1.3.1",
"python-cinderclient==1.6.0",
"python-glanceclient==1.1.0",
"python-heatclient==0.8.0",
pip install setuptools
pip install autoflake==0.6.6
pip install autopep8==1.2.2
-pip install coverage==3.4
+pip install coverage==4.1
pip install flask==0.10
pip install flask-restful==0.3.5
pip install flask-restful-swagger==0.19
pip install funcsigs==0.4
pip install flake8==2.5.4
pip install html2text==2016.1.8
+pip install matplotlib==1.3.1
pip install mock==1.3.0
pip install nose==1.3.7
pip install python-cinderclient==1.6.0
flake8 storperf
+flake8rc=$?
+
nosetests --with-xunit \
--with-coverage \
--cover-package=storperf\
deactivate
-exit $rc
+if [ $flake8rc -ne 0 ]
+then
+ echo "Formatting did not meet guidelines"
+ exit $flake8rc
+fi
+
+exit $rc
\ No newline at end of file
import matplotlib as mpl
mpl.use('Agg')
-import matplotlib.pyplot as pyplot
-from mpl_toolkits.mplot3d import Axes3D
-import numpy as np
+import matplotlib.pyplot as pyplot # noqa: ignore E402
+from mpl_toolkits.mplot3d import Axes3D # noqa: ignore E402, F401
+import numpy as np # noqa: ignore E402
class Barchart(object):
fig = pyplot.figure()
- #ax = Axes3D(fig)
-
data = np.array(latencies)
lx = len(data[0]) # Work out matrix dimensions