Skip to content
Permalink
master
Switch branches/tags
Go to file
* Setup linter in GH actions

* apply black on all files

* run tests on actions/black branch

* revert test execution

* Update test.yml

* Update test.yml

* Update test.yml

* 🎨 Format Python code with psf/black (#772)

Co-authored-by: savingoyal <savingoyal@users.noreply.github.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: savingoyal <savingoyal@users.noreply.github.com>
2 contributors

Users who have contributed to this file

@savingoyal @github-actions
from metaflow import FlowSpec, step
class HelloFlow(FlowSpec):
"""
A flow where Metaflow prints 'Hi'.
Run this flow to validate that Metaflow is installed correctly.
"""
@step
def start(self):
"""
This is the 'start' step. All flows must have a step named 'start' that
is the first step in the flow.
"""
print("HelloFlow is starting.")
self.next(self.hello)
@step
def hello(self):
"""
A step for metaflow to introduce itself.
"""
print("Metaflow says: Hi!")
self.next(self.end)
@step
def end(self):
"""
This is the 'end' step. All flows must have an 'end' step, which is the
last step in the flow.
"""
print("HelloFlow is all done.")
if __name__ == "__main__":
HelloFlow()