Issue 9095: patchcheck should handle extraneous whitespace in .rst files (original) (raw)

Created on 2010-06-27 23:59 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (8)
msg108808 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-06-27 23:59
Tools/scripts/reindent-rst.py already exists, so this should be simple to add.
msg108909 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-06-29 14:24
Feel free to assign patchcheck bugs to me. I’ll write a patch and then assign to you for review.
msg108925 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-06-29 18:22
Knock yourself out!
msg109254 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-07-04 18:42
Please apply the refactor patch in #8912
msg119283 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-10-21 12:50
Now done in r85767.
msg122126 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-22 14:14
I tried to use “make patchcheck” after edits to reST files and it hung. Do you have the same behavior? I suspect reindent-rst is the culprit. I’m wondering about the reindenting; other checks in patchcheck don’t edit files, they just print warnings. On the other hand, removing trailing whitespace and reindenting is not a very good use of people’s time, so having a tool do them is good.
msg122156 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-11-22 19:09
Just ran it without issue after doing an `svn up`. As for fix vs. not, while fixing indentations and removing trailing whitespace is nice, it isn't necessary. Both instances should be a rarity (most IDEs will make sure the situation doesn't occur), so the most important thing is detecting there is an issue for people to fix them (along with providing as much info as possible to make it easy to fix) rather than fixing it for them (if that turns out to be somewhat complicated to do).
msg122168 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-11-22 21:32
patchcheck.py is not so complicated; why don't you debug that hangup yourself?
History
Date User Action Args
2022-04-11 14:57:02 admin set github: 53341
2010-11-22 21:32:58 georg.brandl set messages: +
2010-11-22 19:09:10 brett.cannon set messages: +
2010-11-22 14:14:40 eric.araujo set messages: +
2010-10-21 12:50:05 georg.brandl set status: open -> closednosy: + georg.brandlmessages: + dependencies: - `make patchcheck` should check the whitespace of .c/.h files
2010-07-04 18:42:45 eric.araujo set dependencies: + `make patchcheck` should check the whitespace of .c/.h filesmessages: + versions: + Python 3.2
2010-06-29 18:22:43 brett.cannon set assignee: eric.araujomessages: +
2010-06-29 14:24:20 eric.araujo set resolution: acceptedmessages: + nosy: + eric.araujo
2010-06-27 23:59:41 brett.cannon create