Fix flake8 style reports

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2020-06-17 08:09:14 +02:00
parent f8067a449b
commit 839c936abb
5 changed files with 7 additions and 7 deletions

View File

@ -129,8 +129,8 @@ class BuildCommand(Command):
"""
# Start bitbake build of image
bitbake = find_program(ctx.environ['PATH'], 'bitbake')
cmd = ([bitbake, '-k', '-c', ctx.config.get_bitbake_task()]
+ self.extra_bitbake_args + ctx.config.get_bitbake_targets())
cmd = [bitbake, '-k', '-c', ctx.config.get_bitbake_task()] \
+ self.extra_bitbake_args + ctx.config.get_bitbake_targets()
if sys.stdout.isatty():
logging.info('%s$ %s', ctx.build_dir, ' '.join(cmd))
ret = subprocess.call(cmd, env=ctx.environ, cwd=ctx.build_dir)

View File

@ -132,8 +132,8 @@ class SetupHome(Command):
'\temail = kas@example.com\n'
'\tname = Kas User\n')
if (os.environ.get('AWS_CONFIG_FILE', False)
and os.environ.get('AWS_SHARED_CREDENTIALS_FILE', False)):
if os.environ.get('AWS_CONFIG_FILE', False) \
and os.environ.get('AWS_SHARED_CREDENTIALS_FILE', False):
os.makedirs(self.tmpdirname + "/.aws")
shutil.copy(os.environ['AWS_CONFIG_FILE'],

View File

@ -274,8 +274,8 @@ class RepoImpl(Repo):
if os.path.isfile(path):
my_patches.append((path, patch['id']))
elif (os.path.isdir(path)
and os.path.isfile(os.path.join(path, 'series'))):
elif os.path.isdir(path) \
and os.path.isfile(os.path.join(path, 'series')):
with open(os.path.join(path, 'series')) as f:
for line in f:
if line.startswith('#'):

View File

@ -40,6 +40,7 @@ def test_patch(tmpdir):
kas.kas(['shell', 'test.yml', '-c', 'true'])
os.chdir(prev_dir)
def test_patch_update(tmpdir):
"""
Test that patches are applied correctly after switching refspec from

View File

@ -22,7 +22,6 @@
import os
import shutil
import subprocess
from kas import kas
from kas.libkas import run_cmd