DEV Community

Discussion on: ✨Write clean Python code using pylint and black ✨🐍

Collapse
 
chiragagg5k profile image
Chirag Aggarwal

Those are some amazing tools. I am just curious what does black offer over autopep8, which i thought was considered to be the standard.

Collapse
 
saminarp profile image
Samina Rahman Purba

This is a great question. Black and autopep8 are both formatters. There are people who prefer using one over the other. Personally, I have been using black as a beginner in Python and enjoying it so far. It follows the PEP8 standard. Black is also faster according to some articles I read about black and autopep8 comparisons.
Autopep8 offers more customization options, I heard. Although, I don't have much experience with it. : )
I have contributed to some open source projects on GitHub and they were using black. I believe that might be another contributing factor why I was leaning towards using it for my project : ) !