Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3149

Re: automated pep8 reformatter ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prologic@shortcircuit.net.au>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.086
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'to:name:python list': 0.09; 'written': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'compliant': 0.16; 'pep8': 0.16; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'badly': 0.22; 'thu,': 0.22; '(and': 0.22; 'message- id:@mail.gmail.com': 0.28; '(so': 0.31; 'one)': 0.31; 'solved': 0.31; 'does': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.32; "i've": 0.33; 'there': 0.35; 'tool': 0.35; 'subject: ?': 0.35; 'case': 0.37; 'useful': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'help': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; '2011': 0.62; 'received:74.125.83': 0.69; 'url:php': 0.79; '11:47': 0.84; 'url:script': 0.84; 'url:scripts': 0.84
MIME-Version 1.0
In-Reply-To <BANLkTi=EUY4hb+2EAx9QNmJNaDa+TQuFQA@mail.gmail.com>
References <BANLkTi=EUY4hb+2EAx9QNmJNaDa+TQuFQA@mail.gmail.com>
From James Mills <prologic@shortcircuit.net.au>
Date Thu, 14 Apr 2011 12:01:47 +1000
Subject Re: automated pep8 reformatter ?
To python list <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.330.1302746535.9059.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 82.94.164.166
X-Trace 1302746536 news.xs4all.nl 41103 [::ffff:82.94.164.166]:37420
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3149

Show key headers only | View raw


On Thu, Apr 14, 2011 at 11:47 AM, James Mills
<prologic@shortcircuit.net.au> wrote:
> Does anyone know of a tool that will help with
> reformatting badly written code to be pep8 compliant ?
>
> a 2to3 for pep8 ?

In case there is no such tool (And I don't have the time to write one)
I've found this to be really useful (so far):

http://www.vim.org/scripts/script.php?script_id=2914

cheers
James

-- 
-- James Mills
--
-- "Problems are solved by method"

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: automated pep8 reformatter ? James Mills <prologic@shortcircuit.net.au> - 2011-04-14 12:01 +1000

csiph-web