Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#53)
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 Apr 7, 2023
1 parent 7301417 commit 8ef0886
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: trailing-whitespace

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

Expand All @@ -30,12 +30,12 @@ repos:
- id: mdformat

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.254
rev: v0.0.260
hooks:
- id: ruff
args: ["--fix"]
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ test = "mypy --install-types --non-interactive {args:.}"

[tool.hatch.envs.lint]
dependencies = [
"black[jupyter]==23.1.0",
"black[jupyter]==23.3.0",
"mdformat>0.7",
"ruff==0.0.254",
"ruff==0.0.260",
]
detached = true
[tool.hatch.envs.lint.scripts]
Expand Down
3 changes: 2 additions & 1 deletion pytest_jupyter/jupyter_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"The client plugin has not been installed. "
"If you're trying to use this plugin and you've installed "
"`pytest-jupyter`, there is likely one more step "
"you need. Try: `pip install 'pytest-jupyter[client]'`"
"you need. Try: `pip install 'pytest-jupyter[client]'`",
stacklevel=2,
)

# Bring in local plugins.
Expand Down
7 changes: 4 additions & 3 deletions pytest_jupyter/jupyter_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"The server plugin has not been installed. "
"If you're trying to use this plugin and you've installed "
"`pytest-jupyter`, there is likely one more step "
"you need. Try: `pip install 'pytest-jupyter[server]'`"
"you need. Try: `pip install 'pytest-jupyter[server]'`",
stacklevel=2,
)


Expand Down Expand Up @@ -158,7 +159,7 @@ def jp_logging_stream():
output = logging_stream.getvalue()
# If output exists, print it.
if output:
print(output)
print(output) # noqa
return output


Expand Down Expand Up @@ -395,7 +396,7 @@ def jp_server_cleanup(jp_asyncio_loop):
try:
jp_asyncio_loop.run_until_complete(app._cleanup())
except (RuntimeError, SystemExit) as e:
print("ignoring cleanup error", e)
print("ignoring cleanup error", e) # noqa
if hasattr(app, "kernel_manager"):
app.kernel_manager.context.destroy()
ServerApp.clear_instance()
Expand Down

0 comments on commit 8ef0886

Please sign in to comment.