Closed spyder-bot closed 8 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
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 ?
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
From contrebasse on 2013-08-30T01:33:45Z
I forgot a third problem:
From pierre.raybaut on 2013-08-30T05:22:39Z
issue #1504 has been merged into this issue.
From contrebasse on 2013-09-07T05:42:53Z
No answers ? Is my code that bad ? ^^
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.
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 ?
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.
From contrebasse on 2013-10-14T15:34:02Z
I found solutions to my basic problems. It should be usable now.
From ccordoba12 on 2015-01-02T18:17:41Z
Labels: MS-v2.4
@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.
It depends on @Nodd :-)
Yes, it should be made as a package, but only when spyder will be able to load plugins from a directory in spyderplugins
.
@ccordoba12 have you made any progress in this direction ?
For information I just started working on spyderplugins
. I'll soon create a PR to discuss about it.
@goanpeca, nop, I'm in review mode these days :-)
Then you can start reviewing #2362 !
There is a working external plugin for spyder 3.0 (incoming!) at https://github.com/spyder-ide/spyder.autopep8
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