mirror of https://github.com/apache/cloudstack.git
parent
3de1ff3e0a
commit
39f00290a0
|
|
@ -22,8 +22,8 @@ export PYTHONPATH="../debian/opt/cloud/bin/"
|
|||
export PYTHONDONTWRITEBYTECODE=False
|
||||
|
||||
echo "Running pycodestyle to check systemvm/python code for errors"
|
||||
python3 -m pycodestyle --max-line-length=179 *py
|
||||
python3 -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
|
||||
python -m pycodestyle --max-line-length=179 *py
|
||||
python -m pycodestyle --max-line-length=179 --exclude=monitorServices.py,baremetal-vr.py,passwd_server_ip.py `find ../debian -name \*.py`
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
echo "pycodestyle failed, please check your code"
|
||||
|
|
@ -31,8 +31,8 @@ then
|
|||
fi
|
||||
|
||||
echo "Running pylint to check systemvm/python code for errors"
|
||||
python3 -m pylint --disable=R,C,W *.py
|
||||
python3 -m pylint --disable=R,C,W `find ../debian -name \*.py`
|
||||
python -m pylint --disable=R,C,W *.py
|
||||
python -m pylint --disable=R,C,W `find ../debian -name \*.py`
|
||||
if [ $? -gt 0 ]
|
||||
then
|
||||
echo "pylint failed, please check your code"
|
||||
|
|
|
|||
Loading…
Reference in New Issue