<div dir="ltr"><div>Hello all,</div><div> </div><div>The main problem with adopting style checkers so late in a project's life is that they usually introduce really vast changes. You practically end up with a huge commit that touches each and every python file. Needless to say this makes using e.g. git blame much much harder. </div><div><br></div><div>If you want to test it out, please try the following from a clean state:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="courier new, monospace">cd lib/python</font> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="courier new, monospace">git status     # make sure that no files have any changes in lib/python</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="courier new, monospace">black --exclude OBJ ./<br>git diff --patience --minimal ./ | wc -l</font></blockquote><div><br></div><div>That's a 75k+ line diff and that's only the "grass" library. The gui should give something similar.</div><div><br></div><div>To restore the repo, just run:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="courier new, monospace">git checkout ./</font></blockquote><div><br></div><div>That being said, I do use black in practically all my new projects, usually applying it via <a href="https://pre-commit.com/">pre-commit</a>, and it works great, but I am not sure if it is truly an option for GRASS.</div><div><br></div><div>all the best,</div><div>P.</div></div>