Commit 81fbf487 authored by Darko Poljak's avatar Darko Poljak

Add pep8 check target to build-helper.

parent 356e4b89
......@@ -166,6 +166,7 @@ eof
# First check everything is sane
"$0" check-date
"$0" check-unittest
"$0" pep8
# Generate version file to be included in packaging
"$0" version
......@@ -268,6 +269,28 @@ eof
fi
;;
pep8)
pep8 ${basedir} | less
echo "Please review pep8 report."
while true
do
echo "Continue (yes/no)?"
any=
read any
case "$any" in
yes)
break
;;
no)
exit 1
;;
*)
echo "Please answer with 'yes' or 'no' explicitly."
;;
esac
done
;;
version-branch)
"$0" changelog-version | cut -d. -f '1,2'
;;
......
......@@ -201,6 +201,7 @@ eof
# First check everything is sane
"$0" check-date
"$0" check-unittest
"$0" pep8
# Generate version file to be included in packaging
"$0" version
......@@ -328,6 +329,28 @@ eof
fi
;;
pep8)
pep8 ${basedir} | less
echo "Please review pep8 report."
while true
do
echo "Continue (yes/no)?"
any=
read any
case "$any" in
yes)
break
;;
no)
exit 1
;;
*)
echo "Please answer with 'yes' or 'no' explicitly."
;;
esac
done
;;
version-branch)
"$0" changelog-version | cut -d. -f '1,2'
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment