From 806d6955f31f0c8577b25dd7c91378b4573b67ab Mon Sep 17 00:00:00 2001 From: Jake Fennick Date: Thu, 9 Mar 2023 10:27:23 -0700 Subject: [PATCH] fix pylint --- cwltool/docker.py | 4 +--- cwltool/job.py | 11 ++--------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/cwltool/docker.py b/cwltool/docker.py index ff463a853..62b83ca9a 100644 --- a/cwltool/docker.py +++ b/cwltool/docker.py @@ -236,9 +236,7 @@ def add_file_or_directory_volume( """Append volume a file/dir mapping to the runtime option list.""" if not volume.resolved.startswith("_:"): _check_docker_machine_path(volume.resolved) - self.append_volume( - runtime, volume.resolved, volume.target, writable=volume.staged - ) + self.append_volume(runtime, volume.resolved, volume.target, writable=volume.staged) def add_writable_file_volume( self, diff --git a/cwltool/job.py b/cwltool/job.py index 4db234177..2ac5bbc8f 100644 --- a/cwltool/job.py +++ b/cwltool/job.py @@ -98,15 +98,8 @@ def relink_initialworkdir( # directory, so therefore ineligable for being an output file. # Thus, none of our business continue - host_outdir_tgt = os.path.join( - host_outdir, vol.target[len(container_outdir) + 1 :] - ) - mode = ( - os.stat(host_outdir_tgt).st_mode - | stat.S_IWUSR - | stat.S_IWGRP - | stat.S_IWOTH - ) + host_outdir_tgt = os.path.join(host_outdir, vol.target[len(container_outdir) + 1 :]) + mode = os.stat(host_outdir_tgt).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH mode = 0o664 # Doesn't work for my code mode = 0o777 # works for my code if os.path.islink(host_outdir_tgt) or os.path.isfile(host_outdir_tgt):