@task
def commit():
    if _test_all() == 0:
        subprocess.check_call(['git', 'commit'])
    else:
        print_failure_message('\nTests failed, not committing.')
Commit only if all the tests pass.
dataset/ETHPy150Open calvinschmdt/EasyTensorflow/pavement.py/commit