spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.3k stars 1.61k forks source link

Auto PEP8 your source code #1096

Closed spyder-bot closed 8 years ago

spyder-bot commented 9 years ago

From eng...@gmail.com on 2012-06-19T02:44:39Z

There is an utility to auto pep8 your source code. I guess this would go hand in hand with the current "remove trailing spaces". It could be nice if that could be done directly in spyder. http://pypi.python.org/pypi/autopep8

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1096

spyder-bot commented 9 years ago

From ccordoba12 on 2012-07-04T07:31:28Z

Sounds interesting but someone will have to stand up to implement it. It shouldn't be too hard to do it though :)

Status: HelpNeeded
Labels: -Priority-Medium Priority-Low Cat-Editor

spyder-bot commented 9 years ago

From omegat...@gmail.com on 2013-03-08T07:14:56Z

What's the purpose of https://code.google.com/p/spyderlib/source/browse/pep8.py ?

spyder-bot commented 9 years ago

From contrebasse on 2013-08-29T15:35:24Z

I made a plugin for autopep8 (see attached file). This is my first experience with spyder code and it's mainly copy-paste. It was tested on python 2.7 and python 3.3. It runs with the default options.

I still have a few problems:

Attachment: p_autopep8.py

spyder-bot commented 9 years ago

From contrebasse on 2013-08-30T01:33:45Z

I forgot a third problem:

spyder-bot commented 9 years ago

From pierre.raybaut on 2013-08-30T05:22:39Z

issue #1504 has been merged into this issue.

spyder-bot commented 9 years ago

From contrebasse on 2013-09-07T05:42:53Z

No answers ? Is my code that bad ? ^^

spyder-bot commented 9 years ago

From ccordoba12 on 2013-09-07T07:19:27Z

Sorry, I overlooked it. Thanks for pinging us again. I'll take a look at it later today.

Giving the increasing interest in adding Spyder plugins, one solution would be to add them to PyPi until they are mature enough.

spyder-bot commented 9 years ago

From contrebasse on 2013-09-07T11:20:44Z

I can put it on pypi, but it won't work if installed with pip, the file has to be put in the right spyder subfolder. github may be a better compromise ?

spyder-bot commented 9 years ago

From contrebasse on 2013-09-16T02:30:13Z

I created a github repo for the plugin : https://github.com/Nodd/spyder_autopep8 .

Is there another way to install plugins other than putting the files in /usr/lib/python2.7/dist-packages/spyderplugins/ (or equivalent) ? Something like ~/.spyder2/plugins would be useful.

spyder-bot commented 9 years ago

From contrebasse on 2013-10-14T15:34:02Z

I found solutions to my basic problems. It should be usable now.

spyder-bot commented 9 years ago

From ccordoba12 on 2015-01-02T18:17:41Z

Labels: MS-v2.4

goanpeca commented 9 years ago

@Nodd do you want to make your plugin more like a package? I had already started to do it here

@ccordoba12, should we make an additional repo for this plugin inside spyder-ide repo? It could also be useful as an example of how to make such plugins.

ccordoba12 commented 9 years ago

It depends on @Nodd :-)

Nodd commented 9 years ago

Yes, it should be made as a package, but only when spyder will be able to load plugins from a directory in spyderplugins.

goanpeca commented 9 years ago

@ccordoba12 have you made any progress in this direction ?

Nodd commented 9 years ago

For information I just started working on spyderplugins. I'll soon create a PR to discuss about it.

ccordoba12 commented 9 years ago

@goanpeca, nop, I'm in review mode these days :-)

Nodd commented 9 years ago

Then you can start reviewing #2362 !

Nodd commented 8 years ago

There is a working external plugin for spyder 3.0 (incoming!) at https://github.com/spyder-ide/spyder.autopep8