Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the dependency on Metaflow #82 #89

Merged
merged 7 commits into from
Feb 8, 2021
Merged

Remove the dependency on Metaflow #82 #89

merged 7 commits into from
Feb 8, 2021

Conversation

tdruez
Copy link
Contributor

@tdruez tdruez commented Feb 5, 2021

No description provided.

Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

"""
Indent each line of the provided `text`.
"""
return sep.join(" " * by + line for line in text.split(sep))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be a job for the stdlib textwrap? https://docs.python.org/3/library/textwrap.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks for the tip.

if exitcode == 0:
return True
return False


def pipeline_graph_dot(pipeline_class, fontname="Helvetica", shape="record"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if in the future we could eschew using dot at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can get rid of the feature now we have a way to visualize Pipeline in the UI.


self.stdout.write(f"Pipeline {run.pipeline} run in progress...")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is self.stdout?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


if __name__ == "__main__":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are missing out the direct execution of a pipeline, but I will not miss this at all. A proper managed CLI is better.


class DoNothing(Pipeline):
"""
A pipeline that does nothing, in 2 steps.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pombredanne
Copy link
Member

BTW, we may need to update the documentation accordingly?

@tdruez
Copy link
Contributor Author

tdruez commented Feb 8, 2021

@pombredanne the only reference to Metaflow in the docs is this one:

ScanPipe was originally developed using Django, ScanCode Toolkit, and Metaflow to help boost productivity of code analysts who work on a wide variety of software composition analysis projects.

@tdruez tdruez merged commit b270bec into main Feb 8, 2021
@tdruez tdruez deleted the 82-metaflow-removal branch February 8, 2021 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants