Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#909)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](psf/black@22.10.0...22.12.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.189 → v0.0.207](astral-sh/ruff-pre-commit@v0.0.189...v0.0.207)

* Remove return statement

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: David Brochart <david.brochart@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and davidbrochart authored Jan 3, 2023
1 parent 1205e6c commit f556b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ repos:
- id: mdformat

- repo: https://github.com/psf/black
rev: 22.10.0
rev: 22.12.0
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.189
rev: v0.0.207
hooks:
- id: ruff
args: ["--fix"]
3 changes: 1 addition & 2 deletions jupyter_client/multikernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,8 @@ async def _async_restart_kernel(self, kernel_id: str, now: bool = False) -> None
if self._using_pending_kernels():
if not kernel.ready.done():
raise RuntimeError("Kernel is in a pending state. Cannot restart.")
out = await ensure_async(kernel.restart_kernel(now=now))
await ensure_async(kernel.restart_kernel(now=now))
self.log.info("Kernel restarted: %s" % kernel_id)
return out

restart_kernel = run_sync(_async_restart_kernel)

Expand Down

0 comments on commit f556b00

Please sign in to comment.