Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#355)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.278 →
v0.0.282](astral-sh/ruff-pre-commit@v0.0.278...v0.0.282)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Aug 11, 2023
1 parent 587a077 commit eabede4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: black-jupyter
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.278
rev: v0.0.282
hooks:
- id: ruff
args: ["--fix"]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_lsf_script_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_shell_trival(self):

env_str = machine.gen_script_env(test_job)
benchmark_env = textwrap.dedent(
"""
f"""
REMOTE_ROOT={task_hash}
echo 0 > $REMOTE_ROOT/{job_hash}_flag_if_job_task_fail
test $? -ne 0 && exit 1
Expand All @@ -113,9 +113,7 @@ def test_shell_trival(self):
export DP_DISPATCHER_EXPORT=test_foo_bar_baz
echo 'The summer you were there.'
""".format(
task_hash=task_hash, job_hash=job_hash
)
"""
)
self.assertEqual(env_str.split("\n")[2:], benchmark_env.split("\n")[2:])

Expand Down

0 comments on commit eabede4

Please sign in to comment.