pylint.org

Pylint - code analysis for Python | www.pylint.org

  • ️Logilab

医療への貢献!それがモーリコーポレーション

Coding Standard

  • checking line-code's length,
  • checking if variable names are well-formed according to your coding standard
  • checking if imported modules are used

Python's PEP8 style guide

Fully customizable

Modify your pylintrc to customize which errors or conventions are important to you. The big advantage with Pylint is that it is highly configurable, customizable, and you can easily write a small plugin to add a personal feature.

More about message control (FAQ)

Continuous integration

Running Pylint on your project's code can be automated using Apycot, Hudson or Jenkins.

Extensibility

The underlying Astroid library doesn't understand your code? Contribute a patch to pylint-brain


Command Line

Running from the command line

running in Eclipse with Pydev

Running in Eclipse with Pydev

continuous integration with Apycot

Continuous integration with Apycot

UML diagrams with pyreverse

UML diagrams with pyreverse

Debian

sudo apt-get install pylint

Ubuntu

sudo apt-get install pylint

Fedora

sudo dnf install pylint

Gentoo

emerge pylint

openSUSE

sudo zypper install pylint  # python2.7
sudo zypper install python3-pylint 

FreeBSD

portmaster devel/pylint

Arch Linux

pacman -S python2-pylint # if you live in the past
pacman -S python-pylint  # if you live in the future

OS X

pip install pylint

Windows

pip install pylint # see note

From source using Git

git clone https://github.com/PyCQA/pylint
git clone https://github.com/PyCQA/astroid