Code formatting with Black — Perfect Python

preview_player
Показать описание
Welcome to Perfect Python, the series where I show you how to take your code to the next level — perfection.

In this episode we'll be talking about code formatting using Black. Code formatting is important as it provides any outside viewers and contributors with a standardised code base that is both readable and maintainable.



If you enjoy my content, consider supporting me on Patreon (or hit the JOIN button below to become a member)!

If you need help with anything, feel free to join the Discord server:



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #guide #devops
Рекомендации по теме
Комментарии
Автор

Finally I won’t be hated by everyone I work with

justsomeguy
Автор

3:30 There is something for strings: I know this from many projects and then quotes are not changed. This is very useful.

Alkatar
Автор

that is so useful, please also make a video on automatic formatting using black by pressing alt + shift + F.

farazahmed
Автор

5:22 It didn't change the quotes inside because that would change the actual variable: A string that contains " is different for a string that contains '.

bp
Автор

I use Pycharm, and "black" doesn't work on my laptop. Is there anyone who can help me?

zahramanafi
Автор

88 is because that’s the speed to go back in time.

justin
Автор

when i do this, and then save it it reverts back to the previous formatting. how could i prevent this.

savannahsvoice
Автор

and how did you get the zsh terminal (and that nice looking terminal) for windows?

crixmgu
Автор

how can I configure Black on VS 2022 (no Code)?

haskell
Автор

88 Characters, maybe they were fans of "Kill Bill", and a crazy 88.

michaeltwist
Автор

black . results in Access denied win error5

thegymteachersgrandma