[Python-Dev] whitespace normalization pre-commit hook is giving me grief
g.brandl at gmx.net
Tue May 29 09:47:02 CEST 2007
Martin v. Löwis schrieb:
>> As I said before, you don't really need that when you can (and should!) just run
>> reindent.py over the source file yourself, not care about any diffs and just
> Right. So I withdraw my offer to do anything about the hook.
I think printing something like "Please run Tools/scripts/reindent.py <file>
with the rejected files" if bad files were found would be a good idea.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-Dev