From 2d665a41b09cf8dbabc6b5b2d5f043bc1626906f Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Thu, 9 Feb 2012 01:08:04 -0800 Subject: [PATCH] Check in autopep8 script --- maint/requirements.txt | 2 ++ maint/scripts/run_autopep8.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 maint/scripts/run_autopep8.sh 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 -- 2.47.2