From 46885d4c28e31c417bde4196cda197a6832692f5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 13 Dec 2012 16:07:49 +0100 Subject: [PATCH] New pep8 script --- extra/shutils/pep8.sh | 7 +++++++ extra/shutils/pyflakes.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 extra/shutils/pep8.sh diff --git a/extra/shutils/pep8.sh b/extra/shutils/pep8.sh new file mode 100755 index 000000000..21e574b01 --- /dev/null +++ b/extra/shutils/pep8.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/) +# See the file 'doc/COPYING' for copying permission + +# Runs pep8 on all python files (prerequisite: apt-get install pep8) +find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pep8 '{}' \; diff --git a/extra/shutils/pyflakes.sh b/extra/shutils/pyflakes.sh index e73ede92f..30af0c88c 100755 --- a/extra/shutils/pyflakes.sh +++ b/extra/shutils/pyflakes.sh @@ -3,5 +3,5 @@ # Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/) # See the file 'doc/COPYING' for copying permission -# Runs pyflakes on all python files +# Runs pyflakes on all python files (prerequisite: apt-get install pyflakes) find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pyflakes '{}' \;