mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Add doc string to poetry func
This commit is contained in:
parent
66ab94dfd1
commit
7f94013cdc
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user