Python/pylint
< Python
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
Max Line Length
.pylintrc (in your source code)
[FORMAT] max-line-length=240
ref: [1]
Unnecessary parens after %r keyword
print('Hello')
add this to your imports:
from __future__ import print_function
ref: [2]