Skip to content

Commit 0790cc1

Browse files
[pre-commit.ci] pre-commit autoupdate (ipython#845)
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 a92c65a commit 0790cc1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: trailing-whitespace
2020

2121
- repo: https://github.com/python-jsonschema/check-jsonschema
22-
rev: 0.22.0
22+
rev: 0.23.1
2323
hooks:
2424
- id: check-github-workflows
2525

@@ -34,7 +34,7 @@ repos:
3434
- id: black
3535

3636
- repo: https://github.com/charliermarsh/ruff-pre-commit
37-
rev: v0.0.263
37+
rev: v0.0.270
3838
hooks:
3939
- id: ruff
4040
args: ["--fix"]

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies = ["mypy>=0.990"]
5757
test = "mypy --install-types --non-interactive {args:.}"
5858

5959
[tool.hatch.envs.lint]
60-
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.263"]
60+
dependencies = ["black==23.3.0", "mdformat>0.7", "ruff==0.0.270"]
6161
detached = true
6262
[tool.hatch.envs.lint.scripts]
6363
style = [

traitlets/traitlets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3377,7 +3377,7 @@ def subclass_init(self, cls):
33773377
def from_string(self, s):
33783378
"""Load value from a single string"""
33793379
if not isinstance(s, str):
3380-
raise TypeError(f"from_string expects a string, got {repr(s)} of type {type(s)}")
3380+
raise TypeError(f"from_string expects a string, got {s!r} of type {type(s)}")
33813381
try:
33823382
return self.from_string_list([s])
33833383
except Exception:

0 commit comments

Comments
 (0)