Open stijn-uva opened 2 years ago
I'll have to say goodbye to my beloved tabs but sounds like a good idea 👍
It sounds nice to have that handled for us to some degree. I'm curious to see how it works in practice. I'll read up on Black.
Black is beautiful.
Have you run it on 4CAT? You should and just see all the lovely formatted functions and loops and returns. The number of diffs is a little bit of a slap on the wrist to our own styles but, hey, it's to be expected. I'd miss tabs, but all my IDEs convert my tabs to spaces anyway.
I built a docker version off it and nothing crashed (that's my base level of testing/approval).
Branch for seeing if we can live with it: https://github.com/digitalmethodsinitiative/4cat/tree/blackened
As more developers are contributing to 4CAT, the chance of mixing up different code styles increases and this can be inconvenient or confusing.
I propose we adopt Black for 4CAT, and then we don't have to worry about this anymore :-)