Skip to content

Commit

Permalink
Bump ruff from 0.0.291 to 0.1.5 (#1348)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Luciano Resende <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 19, 2024
1 parent 1de1784 commit 490841f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.291
rev: v0.1.5
hooks:
- id: ruff
args: ["--fix"]
4 changes: 1 addition & 3 deletions enterprise_gateway/client/gateway_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,7 @@ def execute(self, code, timeout=REQUEST_TIMEOUT):
): # We timed out. If post idle, its ok, else make mention of it
if not post_idle:
self.log.warning(
"Unexpected timeout occurred for msg_id: {} - no 'idle' status received!".format(
msg_id
)
f"Unexpected timeout occurred for msg_id: {msg_id} - no 'idle' status received!"
)
break

Expand Down
8 changes: 2 additions & 6 deletions enterprise_gateway/services/processproxies/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ def _update_notebook_master_rest_url(self, env_dict: dict) -> None:
response = None
except Exception as e:
self.log.warning(
"Getting instance group with cmd '{}' failed with exception: '{}'. Continuing...".format(
cmd, e
)
f"Getting instance group with cmd '{cmd}' failed with exception: '{e}'. Continuing..."
)
return

Expand Down Expand Up @@ -623,9 +621,7 @@ def _kill_app_by_driver_id(self, driver_id: str):
response = json.loads(output) if output else None
except Exception as e:
self.log.warning(
"Termination of application with cmd '{}' failed with exception: '{}'. Continuing...".format(
cmd, e
)
f"Termination of application with cmd '{cmd}' failed with exception: '{e}'. Continuing..."
)
self.log.debug(f"Kill response: {response}")
return response
Expand Down
4 changes: 1 addition & 3 deletions enterprise_gateway/services/processproxies/yarn.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,7 @@ def _kill_app_by_id(self, app_id: str) -> Response:
response = self.resource_mgr.cluster_application_kill(application_id=app_id)
except Exception as e:
self.log.warning(
"Termination of application '{}' failed with exception: '{}'. Continuing...".format(
app_id, e
)
f"Termination of application '{app_id}' failed with exception: '{e}'. Continuing..."
)

return response
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ lint = [
"black[jupyter]==23.9.1",
"mdformat>0.7",
"mdformat-gfm>=0.3.5",
"ruff==0.0.291"
"ruff==0.1.5"
]

[tool.ruff.pylint]
Expand Down

0 comments on commit 490841f

Please sign in to comment.