One of the real frustrations with contributing and writing python code with the
flake8 checker is that previously there hasn’t been a tool like
clang_format to automatically strictly format python code for you. In conversations with a friend who works on a large python project I learned about just such a tool. https://github.com/psf/black
Here is the pycon talk about black: https://www.youtube.com/watch?v=esZLCuWs_2Y&feature=youtu.be
The largest change if we adopt it as a code formatter would be how it deals with quotes and how that differs from the current standard. It biases towards double quotes where currently we use flake8_quotes which biases towards single quotes. To use black we’d either have to configure flake8_quotes in ament_flake8 or remove it from the recommended list of flake8 extensions.
Lastly, it would useful to have a ament_black to check for black formatting just like we have an ament_clang_format. I’ll happily contribute this if we can accept black python formatting.