Sign in

Introduction

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 flake8 and black with xargs to clean the code. Although the last one comes from Linux systems, Windows users are able to use it as well.

Kamil Kurzacz

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store