Skip to content

Commit c8ae1cd

Browse files
committed
fix pylint
1 parent 4163db4 commit c8ae1cd

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

cwltool/docker.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ def add_file_or_directory_volume(
248248
"""Append volume a file/dir mapping to the runtime option list."""
249249
if not volume.resolved.startswith("_:"):
250250
_check_docker_machine_path(volume.resolved)
251-
self.append_volume(
252-
runtime, volume.resolved, volume.target, writable=volume.staged
253-
)
251+
self.append_volume(runtime, volume.resolved, volume.target, writable=volume.staged)
254252

255253
def add_writable_file_volume(
256254
self,

cwltool/job.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,8 @@ def relink_initialworkdir(
9393
# directory, so therefore ineligable for being an output file.
9494
# Thus, none of our business
9595
continue
96-
host_outdir_tgt = os.path.join(
97-
host_outdir, vol.target[len(container_outdir) + 1 :]
98-
)
99-
mode = (
100-
os.stat(host_outdir_tgt).st_mode
101-
| stat.S_IWUSR
102-
| stat.S_IWGRP
103-
| stat.S_IWOTH
104-
)
96+
host_outdir_tgt = os.path.join(host_outdir, vol.target[len(container_outdir) + 1 :])
97+
mode = os.stat(host_outdir_tgt).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH
10598
mode = 0o664 # Doesn't work for my code
10699
mode = 0o777 # works for my code
107100
if os.path.islink(host_outdir_tgt) or os.path.isfile(host_outdir_tgt):

0 commit comments

Comments
 (0)