From 7f94013cdc995d62c78c979fd9c8bb22164ae3c8 Mon Sep 17 00:00:00 2001 From: kristiewirth Date: Wed, 30 Sep 2020 12:41:54 -0600 Subject: [PATCH] Add doc string to poetry func --- pipreqs/pipreqs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 15b141e..4972672 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -180,6 +180,11 @@ def output_requirements(imports): def add_requirements_poetry(imports): + """Identifies required imports and runs command to add to poetry. + + Args: + imports (list) + """ packages = [item["name"] for item in imports] # Run all commands even if one fails poetry_command = "".join(["poetry add {pkg}; ".format(pkg) for pkg in packages])