diff --git a/pep8.dat b/pep8.dat new file mode 100644 index 0000000..68e634c --- /dev/null +++ b/pep8.dat @@ -0,0 +1,6 @@ +Check Description Justification +E111 req indent 4 Creates more continuation lines +E114 req indent 4 cmnt Same +E231 req space after , makes calls like print() harder to read +E266 no ## Required by Doxygen +W291 trailing spaces in cmnt Needed for space preserving para reformat diff --git a/pep8.sh b/pep8.sh new file mode 100755 index 0000000..108efc0 --- /dev/null +++ b/pep8.sh @@ -0,0 +1,5 @@ +#!/bin/sh +ignore=`awk -F\\\\t '{ print $1 }' pep8.dat | tail -n +2` +a=(${ignore}) +list=$(echo "${a[@]}"|tr '[ ]' '[,]') +echo python3 -m pep8 --ignore="$list" $@