Add pep8 check target to build-helper.

This commit is contained in:
Darko Poljak 2016-07-10 11:21:52 +02:00
parent 356e4b89f8
commit 81fbf48702
2 changed files with 46 additions and 0 deletions

View file

@ -166,6 +166,7 @@ eof
# First check everything is sane # First check everything is sane
"$0" check-date "$0" check-date
"$0" check-unittest "$0" check-unittest
"$0" pep8
# Generate version file to be included in packaging # Generate version file to be included in packaging
"$0" version "$0" version
@ -268,6 +269,28 @@ eof
fi 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) version-branch)
"$0" changelog-version | cut -d. -f '1,2' "$0" changelog-version | cut -d. -f '1,2'
;; ;;

View file

@ -201,6 +201,7 @@ eof
# First check everything is sane # First check everything is sane
"$0" check-date "$0" check-date
"$0" check-unittest "$0" check-unittest
"$0" pep8
# Generate version file to be included in packaging # Generate version file to be included in packaging
"$0" version "$0" version
@ -328,6 +329,28 @@ eof
fi 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) version-branch)
"$0" changelog-version | cut -d. -f '1,2' "$0" changelog-version | cut -d. -f '1,2'
;; ;;