mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix PyLint warnings from the last CI build
This commit is contained in:
@ -159,10 +159,10 @@ def lib_list():
|
|||||||
|
|
||||||
|
|
||||||
@cli.command("show", short_help="Show details about installed libraries")
|
@cli.command("show", short_help="Show details about installed libraries")
|
||||||
@click.argument("id", type=click.INT)
|
@click.argument("libid", type=click.INT)
|
||||||
def lib_show(id):
|
def lib_show(libid):
|
||||||
lm = LibraryManager(get_lib_dir())
|
lm = LibraryManager(get_lib_dir())
|
||||||
info = lm.get_info(id)
|
info = lm.get_info(libid)
|
||||||
click.secho(info['name'], fg="cyan")
|
click.secho(info['name'], fg="cyan")
|
||||||
click.echo("-" * len(info['name']))
|
click.echo("-" * len(info['name']))
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ def lib_show(id):
|
|||||||
if key == "email":
|
if key == "email":
|
||||||
_data.append("<%s>" % author[key])
|
_data.append("<%s>" % author[key])
|
||||||
elif key == "maintainer":
|
elif key == "maintainer":
|
||||||
_data.append("(maintainer)")
|
_data.append("(maintainer)")
|
||||||
else:
|
else:
|
||||||
_data.append(author[key])
|
_data.append(author[key])
|
||||||
_authors.append(" ".join(_data))
|
_authors.append(" ".join(_data))
|
||||||
@ -206,8 +206,7 @@ def lib_update():
|
|||||||
|
|
||||||
click.echo("Updating [ %s ] %s library:" % (
|
click.echo("Updating [ %s ] %s library:" % (
|
||||||
click.style(id_, fg="yellow"),
|
click.style(id_, fg="yellow"),
|
||||||
click.style(info['name'], fg="cyan"))
|
click.style(info['name'], fg="cyan")))
|
||||||
)
|
|
||||||
|
|
||||||
current_version = info['version']
|
current_version = info['version']
|
||||||
latest_version = versions[id_]
|
latest_version = versions[id_]
|
||||||
|
Reference in New Issue
Block a user