Pylint Tutorial – How to Write Clean Python

preview_player
Показать описание

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 Python Tutorials & News:
Рекомендации по теме
Комментарии
Автор

My new favorite python youtuber! Really love how you're bridging the gap between beginner and intermediate. Not many other people do that very well but you're nailing it.

drew
Автор

I had so much trouble understanding python until i saw your videos! You turned my crappy unclean and duct taped code into something nice and presentable!!

noinformationavailable
Автор

read...actually studied your book. Finally going deep is now easy to understand how to go from cs or java to py. Well done and thank you

egimessito
Автор

Thanks for putting a little content between all the ads!

sepehrnematollahi
Автор

The score is based on the number of errors and the number of lines. 10 is "perfect" and there is no lower bound to the score.

JoshEnglish
Автор

Great video. As a Python noobie I'm still finding out all the wrinkles, and finding out about helpful programming tools, and seeking the 'ultimate' IDE for Python (lol). Succint and to the point, nice one. Now I'm subscribed!!

RobinTheHoodedMan
Автор

Thank you very much for these great tips.

tarekhesham
Автор

I really enjoyed. This video is AWESOME

shahrokhabbasirad
Автор

thanks ur great. please keep making videos ...ur helping the community alot with ur helpful videos.

satoshinakamoto
Автор

it was time for u to use that 🤣.
Thanks really nice vid.

philtoa
Автор

If you use Visual Studio Code, Pylint is included by default. You just have to give installation permission. Style errors are then highlighted automagically.

cybersphere
Автор

3:26 Could anyone tell me in which context he recommends using vEnv? To install any (surf?) Python tool/dependency?

ivanlaplante
Автор

Wondering how you edited your terminal window removing the title bar??? Great video! Keep it up with the great content!

Zinzin
Автор

You should do videos about job interview in python too...for example: What a python developer must know before a job interview?

MrVictorock
Автор

Can anyone explain to me why I get a mixed-indentation error for using tabs only when I haven't used spaces? If I just use spaces it's okay but surely no one actually types out four spaces... I don't get it.

Edit: okay I just did adjusted the option at the bottom right of the window to be spaces and it converts them for you

petrockspiracy
Автор

pylint missed the triple whitespace between the keyword def and the function name crash

kennyPAGC
Автор

how did you make your terminal frameless??

ckortreat
Автор

What shell is that!? Please make a video on installing and customizing that terminal/shell!

Danny-uqzf
Автор

You can run "pylint pylint" :)

dmytroohorodnik
Автор

Hi Dan. Do u have a playlist for python tutorials!! Thanks, Sumit

sumitkumarsain