openmedialibrary_platform_w.../Tools/scripts/reindent-rst.py

15 lines
293 B
Python
Raw Normal View History

2019-01-20 10:35:31 +00:00
#!/usr/bin/env python3
# Make a reST file compliant to our pre-commit hook.
# Currently just remove trailing whitespace.
import sys
import patchcheck
def main(argv=sys.argv):
patchcheck.normalize_docs_whitespace(argv[1:])
if __name__ == '__main__':
sys.exit(main())