] > Re: [Python-projects] New PyLint checker suggestion - doctest_checker (Logilab.org)

Email Re: [Python-projects] New PyLint checker suggestion - doctest_checker

from
subject
Re: [Python-projects] New PyLint checker suggestion - doctest_checker
date
2005/10/21 11:26
On Tuesday 18 October à 19:20, Scorpio wrote:
> Hey,

> I am relatively new to PyLint, but so far I am very pleased with it and I
> try to deploy this tool in my team.

> While deploying PyLint, I've developed this doctest checker (attached) to
> help my team testing it's products.

> I would like you to give me an opinion about this checker, and tell me if
> it's up to PyLint standards and philosophy.
>
> If you find this checker helpful, feel free to use it and distribute it
> further, under GPL as described in the file. 

Nice indeed ! And yes, it's up to PyLint standards and philosophy. I
think I will include it in the distribution, but disabled by default for
two reasons :
* as Nicolas said, checking and testing are semantically differents, so
  I don't think the default behaviour of pylint should include testing
* running doctest implies to import the module, and I've worked hard to
  avoid this ;)

Two side notes: 
* I'm afraid that pylint will crash if the module isn't importable
* You can use logilab.common.modutils.load_module_from_name instead of
  your _get_module function

That's all about it... Nice job, thank you for your contribution :)

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

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

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects