From 692d015627ecf03fbc23cfdb4afcf398b9a09a51 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Jan 2012 17:26:28 +0100 Subject: scripts for testing and syntax unit test --- tests/pyflakes.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 tests/pyflakes.sh (limited to 'tests/pyflakes.sh') diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh new file mode 100755 index 000000000..cdfc11319 --- /dev/null +++ b/tests/pyflakes.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find -name '*.py' |egrep -v '^.(/tests/|/module/lib)'|xargs pyflakes > pyflakes.log || : -- cgit v1.2.3 From 5cd5c4f4a14f406640708a471e86a37e9132c6b9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 12 Jan 2012 19:42:53 +0100 Subject: pyflakes fix --- tests/pyflakes.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/pyflakes.sh') diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh index cdfc11319..1ed61d2ee 100755 --- a/tests/pyflakes.sh +++ b/tests/pyflakes.sh @@ -1,2 +1,3 @@ #!/bin/bash find -name '*.py' |egrep -v '^.(/tests/|/module/lib)'|xargs pyflakes > pyflakes.log || : +cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > pyflakes.txt -- cgit v1.2.3 From f890926cf9fa9f6c36e503008f28daf0f1951084 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 13 Jan 2012 18:02:58 +0100 Subject: fixed pyflakes and sloccount --- tests/pyflakes.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/pyflakes.sh') diff --git a/tests/pyflakes.sh b/tests/pyflakes.sh index 1ed61d2ee..0c7e03891 100755 --- a/tests/pyflakes.sh +++ b/tests/pyflakes.sh @@ -1,3 +1,5 @@ #!/bin/bash find -name '*.py' |egrep -v '^.(/tests/|/module/lib)'|xargs pyflakes > pyflakes.log || : -cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > pyflakes.txt +# Filter warnings and strip ./ from path +cat pyflakes.log | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' | grep -i -E -v "'_'|pypath|webinterface|pyreq|hookmanager" > pyflakes.txt +sed -i 's/^.\///g' pyflakes.txt -- cgit v1.2.3