pylint

We'll cover the following

Python code analysis can be a heavy subject, but it can be very helpful in making your programs better. There are several Python code analyzers that you can use to check your code and see if they conform to standards. pylint is probably the most popular. It’s very configurable, customizable and pluggable too. It also checks your code to see if it conforms to PEP8, the official style guide of Python Core and it looks for programming errors too.

Note that pylint checks your code against most, but not all of PEP8’s standards. We will spend a little time learning about another code analysis package that is called pyflakes.

Getting Started with pylint

The pylint package isn’t included with Python, so you will need to go to the Python Package Index (PyPI) or the package’s website to download it. You can use the following command to do all the work for you:

Get hands-on with 1200+ tech skills courses.