Pylint

Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for bad code smells. This is similar but nevertheless different from what pychecker provides, especially since pychecker explicitly does not bother with coding style. Pylint will display a number of messages as it analyzes the code, as well as some statistics about the number of warnings and errors found in different files. The messages are classified under various categories such as errors and warnings

Installation

Windows

pip install pylint

SLC

sudo yum install pylint

Linux

sudo apt-get install pylint

Usage

Basic run
pylint file1.py file2.py ...