Writing Cleaner Python Code With PyLint

Dan Bader

Dan Bader 8 Lessons 17m
intermediate python

PyLint is a well-known static analysis tool for Python 2 and 3. It has a number of useful features, like checking your code for compliance with the PEP 8 Python style guide. It makes sure that your code follows the code style guide and it can also automatically identify common bugs and errors in your Python code.

In this video series you’ll see how to install and set up the PyLint code linter tool. You’ll learn why you should use code linters like PyLint, Flake8, PyFlakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code.

You can get this setup up and running in a few minutes and it’ll quickly help you write better and cleaner Python code.

Additional Resources#

About Dan Bader

Dan Bader Dan Bader

Dan Bader is the owner and editor in chief of Real Python and the main developer of the realpython.com learning platform. Dan has been writing code for more than 20 years and holds a master's degree in computer science.

» More about Dan

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

Participant Comments

ChrisF on May 27, 2019

Great course thanks Dan.

I am just doing a little project with Open CV and I had 20 + error messages saying it is not a member, so I have just used this trick and now there is none.

Vasanth T on May 14, 2019

Very useful tool and thanks Dan for putting this in a simple video format. Now I will look for the sublime text plugin for this....

« Browse All Courses