From 560699fc6b8c36696f015edc32f7d257f4764783 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 26 Apr 2020 12:58:05 +0300 Subject: [PATCH] Apply formatting --- platformio/commands/check/tools/pvsstudio.py | 5 +---- tests/commands/test_check.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/platformio/commands/check/tools/pvsstudio.py b/platformio/commands/check/tools/pvsstudio.py index 0415d009..871ec4bc 100644 --- a/platformio/commands/check/tools/pvsstudio.py +++ b/platformio/commands/check/tools/pvsstudio.py @@ -221,10 +221,7 @@ class PvsStudioCheckTool(CheckToolBase): # pylint: disable=too-many-instance-at result = proc.exec_command(cmd) # pylint: disable=unsupported-membership-test - if ( - result["returncode"] != 0 - or "license" in result["err"].lower() - ): + if result["returncode"] != 0 or "license" in result["err"].lower(): self._bad_input = True click.echo(result["err"]) continue diff --git a/tests/commands/test_check.py b/tests/commands/test_check.py index 1126bf1d..c5125b1e 100644 --- a/tests/commands/test_check.py +++ b/tests/commands/test_check.py @@ -13,8 +13,8 @@ # limitations under the License. import json -from os.path import isfile, join import sys +from os.path import isfile, join import pytest