It would be really useful if pywikibot edits could be set up to happen only if the size of the edit would surpass threshold.
Especially useful if you want to run standalone cosmetic_changes but want to make the edit happen only if it is "significant", for example not removing only the newline somewhere, but making a larger edit.
Maybe it would be easier to make this happen if the threshold would be in "number of characters changed".
We need to add a parameter to scripts/cosmetic_changes.py script. It'll allow to add a limitation before the save of the edit : -lengthchange:20 would say that the edit will be saved only if 20 characters are changed in the page content.