Skip to content

Commit c20a7e1

Browse files
committed
fix pylint
1 parent 36bad2c commit c20a7e1

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
@@ -91,15 +91,8 @@ def relink_initialworkdir(
9191
# directory, so therefore ineligable for being an output file.
9292
# Thus, none of our business
9393
continue
94-
host_outdir_tgt = os.path.join(
95-
host_outdir, vol.target[len(container_outdir) + 1 :]
96-
)
97-
mode = (
98-
os.stat(host_outdir_tgt).st_mode
99-
| stat.S_IWUSR
100-
| stat.S_IWGRP
101-
| stat.S_IWOTH
102-
)
94+
host_outdir_tgt = os.path.join(host_outdir, vol.target[len(container_outdir) + 1 :])
95+
mode = os.stat(host_outdir_tgt).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH
10396
mode = 0o664 # Doesn't work for my code
10497
mode = 0o777 # works for my code
10598
if os.path.islink(host_outdir_tgt) or os.path.isfile(host_outdir_tgt):

0 commit comments

Comments
 (0)