Proposal: format GDB Python files with black
Tom Tromey
tom@tromey.com
Mon Apr 26 17:42:31 GMT 2021
>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:
Andrew> Right now, if I make a change I edit a file, git add, git commit, and
Andrew> finally, git push. At what point does the auto-formatting take place?
Andrew> Do I need to manually run the tool after editing the file? Is it
Andrew> done, well, automatically at some point? And if it is done
Andrew> automatically, then at what point in the process does this happen, and
Andrew> how does this relate to code review?
Internally, we do it via the Python 'pre-commit' program. Then if I
"git commit" in the repository, the formatter is run.
It's easy to run manually as well though.
For gdb I think it would relate in the same way that testing is done:
you just indicate that you did it.
Tom
More information about the Gdb-patches
mailing list