Skip to content

Commit 6b4441e

Browse files
committed
New ruff fixed some bugs.
1 parent c7a37f2 commit 6b4441e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
args: [--fix, lf]
1717
- id: trailing-whitespace
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: "v0.1.11"
19+
rev: "v0.1.13"
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --exit-non-zero-on-fix]

jsonschema/_format.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, formats: typing.Iterable[str] | None = None):
5555
def __repr__(self):
5656
return f"<FormatChecker checkers={sorted(self.checkers)}>"
5757

58-
def checks( # noqa: D417
58+
def checks(
5959
self, format: str, raises: _RaisesType = (),
6060
) -> typing.Callable[[_F], _F]:
6161
"""
@@ -75,7 +75,7 @@ def checks( # noqa: D417
7575
The exception object will be accessible as the
7676
`jsonschema.exceptions.ValidationError.cause` attribute of the
7777
resulting validation error.
78-
""" # noqa: D214,D405 (charliermarsh/ruff#3547)
78+
"""
7979

8080
def _checks(func: _F) -> _F:
8181
self.checkers[format] = (func, raises)

0 commit comments

Comments
 (0)