In this post I will show you some of my ideas to fix Python code style in repositories that haven’t used code formatters so far. Without them, the files content may be difficult to read, especially when developed by many users. I will tell you about the ways to find modified files in the current working branch with
git ls-files and
git diff. Then, I will explain how to run several cleaning commands like
xargs to clean the code. Although the last one comes from Linux systems, Windows users are able to use it as well.
TLDR: If you want to just see the solution, without reading the whole article, scroll down to the Summary section. …