Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pep 8 converter?

Reply
Thread Tools

pep 8 converter?

 
 
Robin Becker
Guest
Posts: n/a
 
      11-08-2004
Is there a tool that checks/imposes PEP 8 (ie the right core coding style?). It
seems that bugfix patches which miss on style are rejected out of hand. So since
I'm quite chaotic and unable to get on with the "foolish consistency" people it
would be nice if there's some way to actually fix broken code without too much
mind numbing attention to spacing around operators etc.
--
Robin Becker
 
Reply With Quote
 
 
 
 
Gerhard Haering
Guest
Posts: n/a
 
      11-08-2004
On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:
> Is there a tool that checks/imposes PEP 8 (ie the right core coding
> style?). It seems that bugfix patches which miss on style are rejected out
> of hand. [...]


I doubt that's the case. Care to provide an example?

-- Gerhard

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBj1J/dIO4ozGCH14RAuj+AJ9HpGviJYxFZkm5qd6JIcl+JRMeBgCff/pg
Ryz2jK/mDedCqoIDpIU6dRg=
=gML6
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
 
Sylvain Thenault
Guest
Posts: n/a
 
      11-08-2004
On Mon, 08 Nov 2004 10:53:51 +0000, Robin Becker wrote:

> Is there a tool that checks/imposes PEP 8 (ie the right core coding style?).


The default pylint's policy is consistent with Guido's style guide. But it
only checks, not imposes anything nor patches the code to fix detected
problems.
Pylint is available from http://www.logilab.org/projects/pylint

--
Sylvain Thénault LOGILAB, Paris (France).

http://www.logilab.com http://www.logilab.fr http://www.logilab.org


 
Reply With Quote
 
Robin Becker
Guest
Posts: n/a
 
      11-08-2004
Gerhard Haering wrote:
> On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:
>
>>Is there a tool that checks/imposes PEP 8 (ie the right core coding
>>style?). It seems that bugfix patches which miss on style are rejected out
>>of hand. [...]

>
>
> I doubt that's the case. Care to provide an example?
>
> -- Gerhard



Date: 2004-11-07 14:32
Sender: *******
Logged In: YES
user_id=31392

The formatting of this patch is wrong. There is a long line
(>80 chars) and missing whitespace around commas, operators,
etc.

--
Robin Becker
 
Reply With Quote
 
Robin Becker
Guest
Posts: n/a
 
      11-08-2004
Sylvain Thenault wrote:
> On Mon, 08 Nov 2004 10:53:51 +0000, Robin Becker wrote:
>
>
>>Is there a tool that checks/imposes PEP 8 (ie the right core coding style?).

>
>
> The default pylint's policy is consistent with Guido's style guide. But it
> only checks, not imposes anything nor patches the code to fix detected
> problems.
> Pylint is available from http://www.logilab.org/projects/pylint
>

thanks I'll give it a whirl
--
Robin Becker
 
Reply With Quote
 
Gerhard Haering
Guest
Posts: n/a
 
      11-08-2004
On Mon, Nov 08, 2004 at 11:42:46AM +0000, Robin Becker wrote:
> Gerhard Haering wrote:
> >On Mon, Nov 08, 2004 at 10:53:51AM +0000, Robin Becker wrote:
> >
> >>Is there a tool that checks/imposes PEP 8 (ie the right core coding
> >>style?). It seems that bugfix patches which miss on style are rejected
> >>out of hand. [...]

> >
> >
> >I doubt that's the case. Care to provide an example?

>
> Date: 2004-11-07 14:32
> Sender: *******
> Logged In: YES
> user_id=31392
>
> The formatting of this patch is wrong. There is a long line
> (>80 chars) and missing whitespace around commas, operators,
> etc.


URL?

-- Gerhard

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBj1zOdIO4ozGCH14RAk97AJ4xcz3M5/SSBRlyWNrt6oLYDT2LBwCgoRdF
Y6uq0G+nHYcH77vJMr6UXG4=
=ryGv
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About Rational Number (PEP 239/PEP 240) Lie Python 25 12-18-2007 06:13 AM
PEP for new modules (I read PEP 2) Christoph Becker-Freyseng Python 3 01-16-2004 04:26 PM
Del's "except"ional PEP Rejection Raymond Arthur St. Marie II of III Python 0 07-27-2003 03:59 AM
PEP 304, and alternative Andrew Clover Python 1 07-22-2003 01:00 PM
PEP idea. ( removing __slots__ ) simon place Python 6 07-07-2003 02:09 AM



Advertisments