mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fix PyLint warnings
This commit is contained in:
@ -100,8 +100,8 @@ def set_setting(name, value):
|
||||
try:
|
||||
if "validator" in defdata:
|
||||
value = defdata['validator']()
|
||||
elif (isinstance(defdata['value'], bool)
|
||||
and not isinstance(value, bool)):
|
||||
elif (isinstance(defdata['value'], bool) and
|
||||
not isinstance(value, bool)):
|
||||
value = str(value).lower() in ("yes", "y", "1")
|
||||
elif isinstance(defdata['value'], int):
|
||||
value = int(value)
|
||||
|
@ -59,8 +59,8 @@ def cli(query, json_output): # pylint: disable=R0912
|
||||
|
||||
click.echo(BOARDLIST_TPL.format(
|
||||
type=click.style(type_, fg="cyan"), mcu=data['build']['mcu'],
|
||||
frequency="%dMhz" % (int(data['build']['f_cpu'][:-1])
|
||||
/ 1000000),
|
||||
frequency="%dMhz" % (
|
||||
int(data['build']['f_cpu'][:-1]) / 1000000),
|
||||
flash=flash_size, ram=ram_size, name=data['name']))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user