Re: [Zope3-Users] imports cleanup
Am 15.03.2007 um 01:52 schrieb Christophe Combelles: [...] Is there a tool or a method to automatically clean or detect unused imports ? In your Zope3-Instance there should be a python script called importchecker which can detect unused imports. hth, mac ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] imports cleanup
Hi Christophe, you may want to take a look at pylint. www.logilab.org/project/name/pylint It is a coding standard checker, finding unused imports as well but does much more. Cheers -Tom Christophe Combelles wrote: Hello, As I'm experimenting with various components, I'm adding more and more imports in the beginning of the python files, but at the end, most of them are unused. Is there a tool or a method to automatically clean or detect unused imports ? regards, Christophe ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] imports cleanup
On Mar 15, 2007, at 1:52 AM, Christophe Combelles wrote: Is there a tool or a method to automatically clean or detect unused imports ? pyflakes[1] is also nice and very fast as well. cheers, andi [1] http://divmod.org/trac/wiki/DivmodPyflakes -- zeidler it consulting - http://zitc.de/ - [EMAIL PROTECTED] friedelstraße 31 - 12047 berlin - telefon +49 30 25563779 pgp key at http://zitc.de/pgp - http://wwwkeys.de.pgp.net/ please sign the climate wake up call @ http://www.avaaz.org/ PGP.sig Description: This is a digitally signed message part ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] imports cleanup
On Thu, Mar 15, 2007 at 01:52:51AM +0100, Christophe Combelles wrote: As I'm experimenting with various components, I'm adding more and more imports in the beginning of the python files, but at the end, most of them are unused. Is there a tool or a method to automatically clean or detect unused imports ? Well, people have been using tools like that to clean up Zope 3 itself in the past. Googling for 'python import checker' finds at least two tools that should do the job: PyChecker, python-import-check. Albertas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users