From 53613156342e6b7cf0b9f4752e2e7ad4f160ee7f Mon Sep 17 00:00:00 2001 From: "Stuart D. Gathman" Date: Mon, 26 Sep 2016 13:36:22 -0400 Subject: [PATCH] Minor fixes to make test suite pass for python2 after binary/text file changes. --- pep8.dat | 6 ++++++ pep8.sh | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 pep8.dat create mode 100755 pep8.sh 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" $@