From: Ben Darnell Date: Thu, 9 Feb 2012 09:08:04 +0000 (-0800) Subject: Check in autopep8 script X-Git-Tag: v2.3.0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d665a41b09cf8dbabc6b5b2d5f043bc1626906f;p=thirdparty%2Ftornado.git Check in autopep8 script --- diff --git a/maint/requirements.txt b/maint/requirements.txt index 30e0d32e1..774ec1b75 100644 --- a/maint/requirements.txt +++ b/maint/requirements.txt @@ -7,7 +7,9 @@ pycurl==7.19.0 # Other useful tools Sphinx==1.1.2 +autopep8==0.5 coverage==3.5.1 +pep8==0.6.1 pyflakes==0.5.0 tox==1.3 virtualenv==1.7 diff --git a/maint/scripts/run_autopep8.sh b/maint/scripts/run_autopep8.sh new file mode 100755 index 000000000..5d85efd17 --- /dev/null +++ b/maint/scripts/run_autopep8.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Runs autopep8 in the configuration used for tornado. +# +# W602 is "deprecated form of raising exception", but the fix is incorrect +# (and I'm not sure if the three-argument form of raise is really deprecated +# in the first place) +autopep8 --ignore=W602 -i tornado/*.py tornado/platform/*.py tornado/test/*.py