File: run_autopep8.sh

package info (click to toggle)
python-tornado 6.2.0-3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,396 kB
  • sloc: python: 27,837; javascript: 156; sh: 99; ansic: 58; xml: 49; makefile: 48; sql: 23
file content (11 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
#!/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)
# E501 is "line longer than 80 chars" but the automated fix is ugly.
# E301 adds a blank line between docstring and first method
# E309 adds a blank line between class declaration and docstring (?)
autopep8 --ignore=W602,E501,E301,E309 -i tornado/*.py tornado/platform/*.py tornado/test/*.py