Returning none

Skip Montanaro skip at mojam.com
Fri Aug 27 19:50:35 EDT 1999


    Paul> I would accept this type of compromise if Python had a way of
    Paul> integrating "lint" into the edit/compile/run cycle. Most
    Paul> developers don't remember to "pylint" six modules just because
    Paul> they changed each of them in the last hour.

The same problem existed in the days when lint functionality was separate
from the C compiler.  People just had lint targets in their Makefiles.  So
you add a pylint target to your Makefile, something like (GNU make syntax):

	PYFILES = spam.py eggs.py cheese.py
	pylint: $(PYFILES:%.py=%.pyl)

	%.pyl:%.py
		pylint.py $< | tee $@

Then all you have to do is remember to "make pylint" periodically.

Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/~skip/
847-971-7098   | Python: Programming the way Guido indented...




More information about the Python-list mailing list