Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#845)
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 committed Jun 6, 2023
1 parent a92c65a commit 0790cc1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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 @@ -34,7 +34,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"]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,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
2 changes: 1 addition & 1 deletion traitlets/traitlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3377,7 +3377,7 @@ def subclass_init(self, cls):
def from_string(self, s):
"""Load value from a single string"""
if not isinstance(s, str):
raise TypeError(f"from_string expects a string, got {repr(s)} of type {type(s)}")
raise TypeError(f"from_string expects a string, got {s!r} of type {type(s)}")
try:
return self.from_string_list([s])
except Exception:
Expand Down

0 comments on commit 0790cc1

Please sign in to comment.