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


Groups > comp.lang.python > #20037 > unrolled thread

How to make PyDev pep8 friendly?

Started byAli Zandi <azandi@adconion.com>
First post2012-02-08 16:15 -0800
Last post2012-02-17 09:54 -0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  How to make PyDev pep8 friendly? Ali Zandi <azandi@adconion.com> - 2012-02-08 16:15 -0800
    Re: How to make PyDev pep8 friendly? Fabio Zadrozny <fabiofz@gmail.com> - 2012-02-17 09:54 -0200

#20037 — How to make PyDev pep8 friendly?

FromAli Zandi <azandi@adconion.com>
Date2012-02-08 16:15 -0800
SubjectHow to make PyDev pep8 friendly?
Message-ID<5321a1a2-679e-4808-a04e-bdd639dba78d@db5g2000vbb.googlegroups.com>
Hi,

I was trying to find a way to configure PyDev e.g. in Eclipse to be
pep8 friendly.

There are a few configurations like right trim lines, use space after
commas, use space before and after operators, add new line at the end
of file which can be configured via Eclipse -> Window -> Preferences -
> PyDev -> Editor -> Code Style -> Code Formatter. But these are not
enough; for example I couldn't find a way to configure double line
spacing between function definitions.

So is there any way to configure eclipse or PyDev to apply pep8 rules
e.g. on each save?

Thanks,

[toc] | [next] | [standalone]


#20548

FromFabio Zadrozny <fabiofz@gmail.com>
Date2012-02-17 09:54 -0200
Message-ID<mailman.5916.1329479685.27778.python-list@python.org>
In reply to#20037
On Wed, Feb 8, 2012 at 10:15 PM, Ali Zandi <azandi@adconion.com> wrote:
> Hi,
>
> I was trying to find a way to configure PyDev e.g. in Eclipse to be
> pep8 friendly.
>
> There are a few configurations like right trim lines, use space after
> commas, use space before and after operators, add new line at the end
> of file which can be configured via Eclipse -> Window -> Preferences -
>> PyDev -> Editor -> Code Style -> Code Formatter. But these are not
> enough; for example I couldn't find a way to configure double line
> spacing between function definitions.
>
> So is there any way to configure eclipse or PyDev to apply pep8 rules
> e.g. on each save?
>

While this is known, there are still no dates on when this will
actually be implemented...

On the other way, I'd love to accept patches for that... it could even
be done in Python (actually Jython 2.2.1) -- which is also the way
that pep8.py was integrated.

Cheers,

Fabio

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web