Skip to content

Commit

Permalink
Update pre-commit: ruff v0.6.9 -> v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj committed Nov 12, 2024
1 parent 08b672c commit 44ece92
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
exclude: test-data/ert/eclipse/parse/ERROR.PRT # exact format is needed for testing

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.7.3
hooks:
- id: ruff
args: [ --fix ]
Expand Down
2 changes: 1 addition & 1 deletion src/ert/scheduler/openpbs_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async def submit(
arg_queue_name = ["-q", self._queue_name] if self._queue_name else []
arg_project_code = ["-A", self._project_code] if self._project_code else []
arg_keep_qsub_output = (
[] if self._keep_qsub_output else "-o /dev/null -e /dev/null".split()
[] if self._keep_qsub_output else ["-o", "/dev/null", "-e", "/dev/null"]
)

script = (
Expand Down
2 changes: 1 addition & 1 deletion src/everest/jobs/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ def safe_open(file, mode="r", **kwargs):

if any(wtoken in mode for wtoken in "wxa+"):
_create_folders(file)
return open(file, mode, encoding="utf-8", **kwargs) # noqa SIM115
return open(file, mode, encoding="utf-8", **kwargs)
2 changes: 1 addition & 1 deletion tests/ert/ui_tests/cli/test_missing_runpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_missing_runpath_has_isolated_failures(tmp_path, monkeypatch):
def raising_named_temporary_file(*args, **kwargs):
if "realization-1" in str(kwargs["dir"]):
raise OSError("Don't like realization-1")
return NamedTemporaryFile(*args, **kwargs) # noqa
return NamedTemporaryFile(*args, **kwargs)


def patch_raising_named_temporary_file(queue_system):
Expand Down

0 comments on commit 44ece92

Please sign in to comment.