Skip to content

Commit

Permalink
style(black): format with black v24 (reanahub#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Jan 29, 2024
1 parent e6742f2 commit 8a2757e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions reana_job_controller/job_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def retrieve_all_jobs():
{
job_id: {
"cmd": job["cmd"] if job.get("cmd") else "",
"cvmfs_mounts": job["cvmfs_mounts"]
if job.get("cvmfs_mounts")
else [],
"cvmfs_mounts": (
job["cvmfs_mounts"] if job.get("cvmfs_mounts") else []
),
"docker_img": job["docker_img"],
"job_id": job["job_id"],
"max_restart_count": job["max_restart_count"],
Expand Down
2 changes: 1 addition & 1 deletion reana_job_controller/job_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def watch_jobs(self, job_db, app):
"RESV_DEL_HOLD",
"REQUEUED",
"RESIZING",
]
],
# 'REVOKED',
# 'SIGNALING',
# 'SPECIAL_EXIT',
Expand Down
8 changes: 4 additions & 4 deletions reana_job_controller/kubernetes_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ def execute(self):
job_spec["containers"][0]["volumeMounts"].extend(volume_mounts)
job_spec["volumes"].extend(volumes)

self.job["spec"]["template"]["spec"][
"securityContext"
] = client.V1PodSecurityContext(
run_as_group=WORKFLOW_RUNTIME_USER_GID, run_as_user=self.kubernetes_uid
self.job["spec"]["template"]["spec"]["securityContext"] = (
client.V1PodSecurityContext(
run_as_group=WORKFLOW_RUNTIME_USER_GID, run_as_user=self.kubernetes_uid
)
)

if self.kerberos:
Expand Down

0 comments on commit 8a2757e

Please sign in to comment.