Python/pylint

From Omnia
Jump to: navigation, search

pylint

pylint - http://pypi.python.org/pypi/pylint

Install:

pip install pylint

manual install:

mkdir -p ~/.src ; cd ~/.src
wget https://pypi.python.org/packages/source/p/pylint/pylint-0.27.0.tar.gz --no-check-certificate
tar -zvxf pylint-0.27.0.tar.gz
cd pylint-0.27.0
sudo python setup.py install  # not this appears to install the dependencies as well!

Usage:

pylint myscript.py

To get only the messages, and not the report:

pylint -rn myscript.py