Menu

pylint

Alexandru Bujor

Pylint

"pylint is a Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code smells (as defined in Martin Fowler's Refactoring book)." (extract from man pylint)

Installing pylint is simple, as it can be downloaded from repos using the package manager:
sudo apt-get install pylint

Normal usage of pylint is also very simple:
pylint sourcefile.py

This will analyze your code and will print warnings and errors. You will also get a grade. Try to fix as many errors as possible before svn commit.

While fixing warning/errors will be an annoying task, this will ensure that a single coding convention is used in the entire project for python scripts.


Related

Wiki: General development guidelines