Skip to content

Instantly share code, notes, and snippets.

@jmewes
Last active August 19, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmewes/ef997c6b3f86d04b0004 to your computer and use it in GitHub Desktop.
Save jmewes/ef997c6b3f86d04b0004 to your computer and use it in GitHub Desktop.
Reasonable
<html>
<h1>Clean Code Checklist</h1>
<form action=#">
<fieldset>
<br/><label><input type="checkbox">Reasonable unit test coverage</label>
<br/><label><input type="checkbox">Code is easily understandable</label>
<br/><label><input type="checkbox">Logical module structure</label>
<br/><label><input type="checkbox">Regresssion tests passed</label>
<br/><label><input type="checkbox">Code style tests passed</label>
</fieldset>
</form>
</html>
#!/usr/bin/python
import sys
import os
sys.stdin = open("/dev/tty")
os.system("firefox /tmp/clean-code-checklist.html 2> /dev/null & ")
answer = raw_input("Did your changes pass the clean code checklist? (y/n/s) ")
if (answer == "y" or answer == "s"):
exit(0)
else:
exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment