Last active
August 19, 2020 18:37
-
-
Save jmewes/ef997c6b3f86d04b0004 to your computer and use it in GitHub Desktop.
Reasonable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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