Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1120)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Jun 6, 2023
1 parent f7e5a8f commit 3455c29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
rev: 0.23.1
hooks:
- id: check-github-workflows

Expand All @@ -36,7 +36,7 @@ repos:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.263
rev: v0.0.270
hooks:
- id: ruff
args: ["--fix"]
5 changes: 2 additions & 3 deletions ipykernel/eventloops.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,9 @@ def loop_asyncio_exit(kernel):

loop = asyncio.get_event_loop()

@asyncio.coroutine
def close_loop():
async def close_loop():
if hasattr(loop, "shutdown_asyncgens"):
yield from loop.shutdown_asyncgens()
yield loop.shutdown_asyncgens()
loop._should_close = True # type:ignore[attr-defined]
loop.stop()

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ dependencies = ["mypy>=0.990"]
test = "mypy --install-types --non-interactive {args:.}"

[tool.hatch.envs.lint]
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.263"]
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.270"]
detached = true
[tool.hatch.envs.lint.scripts]
style = [
Expand Down

0 comments on commit 3455c29

Please sign in to comment.