def flake8(context):
    """Run the flake8 task

    The ``context`` argument is automatically passed in by invoke and
    represents the context the commands is to be "invoked" in. See
    http://docs.pyinvoke.org/en/stable/api/context.html for details.

    """
    print("# flake8")
    return context.run("flake8").return_code