lint for Python?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Oct 4 03:04:26 EDT 2008
On Fri, 03 Oct 2008 17:38:13 -0400, Pat wrote:
> Pylint does a decent job at checking for errors only within a single
> module.
>
> Here's one of my problems. I have two modules.
>
> In module one, I have a function:
>
> def foo( host, userid, password ):
> pass
>
> In module two, I call that function:
>
> foo( userid, password)
>
> lint doesn't find that error and it won't be caught until it's called
> while the program is running. I don't want that error found at 3AM.
Then don't run the unit tests that late at night (or early in the
morning). ;-)
Besides the `unittest` module from the standard library you might look
into `py.test` and `nose`.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list