Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2025
1 parent a690a3d commit 052332b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diracx-api/src/diracx/api/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async def create_sandbox(paths: list[Path], *, client: DiracClient) -> str:
The returned value is the PFN of the sandbox in the storage backend and can
be used to submit jobs.
"""
with tempfile.TemporaryFile(mode="w+b") as tar_fh: # type: ignore
with tempfile.TemporaryFile(mode="w+b") as tar_fh: # type: ignore
with tarfile.open(fileobj=tar_fh, mode=f"w|{SANDBOX_COMPRESSION}") as tf:
for path in paths:
logger.debug("Adding %s to sandbox as %s", path.resolve(), path.name)
Expand Down

0 comments on commit 052332b

Please sign in to comment.