Pylint Tutorial – How to Write Clean Python

Published: 13 June 2017
on channel: Real Python
159,125
2.4k

https://dbader.org/python-tricks ► Get examples of clean and Pythonic code that passes any Pylint or PEP 8 run.

In this Pylint tutorial video you'll see how to install and set up the Pylint code linter for Python step by step. We'll go over why you should use a code linter like Pylint, Flake8, Pyflakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code.

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.

To set up Pylint you'll first need to install it with the `pip install` command and then you can run it on any Python file with the "pylint" command. Pylint inspects your code and then gives you feedback on it. Besides running Pylint from the command-line you can also integrate it into your editor to get live feedback on your Python code.

In this Pylint tutorial I'm going over the feedback produced by Pylint and I'm taking it to refactor and improve the quality of my 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.

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* *

► Python swag: MUGS, SHIRTS & more: https://nerdlettering.com

FREE Python Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


On this page of the site you can watch the video online Pylint Tutorial – How to Write Clean Python with a duration of hours minute second in good quality, which was uploaded by the user Real Python 13 June 2017, share the link with friends and acquaintances, this video has already been watched 159,125 times on youtube and it was liked by 2.4 thousand viewers. Enjoy your viewing!