The python black project.

Natal Ngétal natal at redhat.com
Thu Apr 18 08:51:47 UTC 2019


Hi everyone,

Black is project to format Python code. It's more and more used by the python
community. That can save time and harmonize the code. For example, simple quote
versus double quote, that was not checked by pep8.i It's just an example of
what make  black With a pre-hook commit hook this will be also avoid to lose
time with pep8 errors.

Two links to see more:

https://github.com/ambv/black
https://www.mattlayman.com/blog/2018/python-code-black/

I think it can be very interesting to start to use Black on OpenStack. What
do you thinks about that? For example, we can introduce it on some projects, I
would volunteer to try on TripleO.

My best regards



More information about the openstack-discuss mailing list