Skip to content

Commit

Permalink
Improve formatting of system info output
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikranth3140 committed Jun 18, 2024
1 parent eee994b commit 1c70a2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gpt_engineer/applications/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def get_system_info():
"os_version": platform.version(),
"architecture": platform.machine(),
"python_version": sys.version,
"packages": get_installed_packages(),
"packages": format_installed_packages(get_installed_packages())
}
return system_info

Check warning on line 251 in gpt_engineer/applications/cli/main.py

View check run for this annotation

Codecov / codecov/patch

gpt_engineer/applications/cli/main.py#L251

Added line #L251 was not covered by tests

Expand All @@ -264,6 +264,9 @@ def get_installed_packages():
return str(e)

Check warning on line 264 in gpt_engineer/applications/cli/main.py

View check run for this annotation

Codecov / codecov/patch

gpt_engineer/applications/cli/main.py#L261-L264

Added lines #L261 - L264 were not covered by tests


def format_installed_packages(packages):
return "\n".join([f"{name}: {version}" for name, version in packages.items()])

Check warning on line 268 in gpt_engineer/applications/cli/main.py

View check run for this annotation

Codecov / codecov/patch

gpt_engineer/applications/cli/main.py#L268

Added line #L268 was not covered by tests

@app.command(
help="""
GPT-engineer lets you:
Expand Down

0 comments on commit 1c70a2e

Please sign in to comment.