Skip to content

Commit

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

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.23.3 → 0.26.3](python-jsonschema/check-jsonschema@0.23.3...0.26.3)
- [github.com/executablebooks/mdformat: 0.7.16 → 0.7.17](executablebooks/mdformat@0.7.16...0.7.17)
- [github.com/astral-sh/ruff-pre-commit: v0.0.281 → v0.0.287](astral-sh/ruff-pre-commit@v0.0.281...v0.0.287)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

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 Sep 5, 2023
1 parent af372c5 commit d15a736
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.3
rev: 0.26.3
hooks:
- id: check-github-workflows

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
rev: 0.7.17
hooks:
- id: mdformat

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

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.281
rev: v0.0.287
hooks:
- id: ruff
args: ["--fix"]
11 changes: 2 additions & 9 deletions jupyter_client/kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,8 @@ def _deprecated_trait(self, change):
# protects backward-compatible config from warnings
# if they set the same value under both names
self.log.warning(
(
"{cls}.{old} is deprecated in jupyter_client "
"{version}, use {cls}.{new} instead"
).format(
cls=self.__class__.__name__,
old=old_attr,
new=new_attr,
version=version,
)
f"{self.__class__.__name__}.{old_attr} is deprecated in jupyter_client "
f"{version}, use {self.__class__.__name__}.{new_attr} instead"
)
setattr(self, new_attr, change.new)

Expand Down
4 changes: 2 additions & 2 deletions jupyter_client/provisioning/local_provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ async def pre_launch(self, **kwargs: Any) -> Dict[str, Any]:
if km.transport == 'tcp' and not is_local_ip(km.ip):
msg = (
"Can only launch a kernel on a local interface. "
"This one is not: {}."
f"This one is not: {km.ip}."
"Make sure that the '*_address' attributes are "
"configured properly. "
"Currently valid addresses are: {}".format(km.ip, local_ips())
f"Currently valid addresses are: {local_ips()}"
)
raise RuntimeError(msg)
# build the Popen cmd
Expand Down

0 comments on commit d15a736

Please sign in to comment.