Installation and use of Python pylint

Pylint is a Python code analysis tool that analyzes Python errors in the code, find the code that does not meet the standard and style code has potential problems.

Pylint is a Python tool, in addition to the usual role of code analysis tool, which provides more functionality: Check the length of such a line of code, variable names naming standards compliance, whether a declared interface is truly like.

Pylint a great advantage is its highly configurable, highly customizable, and can be very easy to write a small plugin to add functionality.

The project needs to be done to check the code specifications, so the study about the use of pylint.

Pylint installation.
It pylint be used for all higher than or equal Python version 2.2 compatible.
Measured python 2.7.12 installation

pip install  pylint==1.9.3

 enum34 can not be installed

sudo pip install --ignore-installed enum34

 

Guess you like

Origin www.cnblogs.com/long5683/p/11077019.html
Recommended