]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Check in autopep8 script
authorBen Darnell <ben@bendarnell.com>
Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)
committerBen Darnell <ben@bendarnell.com>
Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)
maint/requirements.txt
maint/scripts/run_autopep8.sh [new file with mode: 0755]

index 30e0d32e14536a81e0bff1428a23d147c44db2d2..774ec1b7523305daceb3a267ef266cf5bdd60d1a 100644 (file)
@@ -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 (executable)
index 0000000..5d85efd
--- /dev/null
@@ -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