Skip to content

Commit d15a736

Browse files
[pre-commit.ci] pre-commit autoupdate (#969)
* [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](hukkin/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 <[email protected]>
1 parent af372c5 commit d15a736

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.23.3
23+
rev: 0.26.3
2424
hooks:
2525
- id: check-github-workflows
2626

2727
- repo: https://github.com/executablebooks/mdformat
28-
rev: 0.7.16
28+
rev: 0.7.17
2929
hooks:
3030
- id: mdformat
3131

@@ -35,7 +35,7 @@ repos:
3535
- id: black
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.0.281
38+
rev: v0.0.287
3939
hooks:
4040
- id: ruff
4141
args: ["--fix"]

jupyter_client/kernelspec.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,8 @@ def _deprecated_trait(self, change):
178178
# protects backward-compatible config from warnings
179179
# if they set the same value under both names
180180
self.log.warning(
181-
(
182-
"{cls}.{old} is deprecated in jupyter_client "
183-
"{version}, use {cls}.{new} instead"
184-
).format(
185-
cls=self.__class__.__name__,
186-
old=old_attr,
187-
new=new_attr,
188-
version=version,
189-
)
181+
f"{self.__class__.__name__}.{old_attr} is deprecated in jupyter_client "
182+
f"{version}, use {self.__class__.__name__}.{new_attr} instead"
190183
)
191184
setattr(self, new_attr, change.new)
192185

jupyter_client/provisioning/local_provisioner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ async def pre_launch(self, **kwargs: Any) -> Dict[str, Any]:
167167
if km.transport == 'tcp' and not is_local_ip(km.ip):
168168
msg = (
169169
"Can only launch a kernel on a local interface. "
170-
"This one is not: {}."
170+
f"This one is not: {km.ip}."
171171
"Make sure that the '*_address' attributes are "
172172
"configured properly. "
173-
"Currently valid addresses are: {}".format(km.ip, local_ips())
173+
f"Currently valid addresses are: {local_ips()}"
174174
)
175175
raise RuntimeError(msg)
176176
# build the Popen cmd

0 commit comments

Comments
 (0)