Skip to content

Commit 58bcb5e

Browse files
authored
Merge pull request #123 from python-jsonschema/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 8354dc0 + d310e8b commit 58bcb5e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
args: [--fix, lf]
1414
- id: trailing-whitespace
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: "v0.1.14"
16+
rev: "v0.2.0"
1717
hooks:
1818
- id: ruff
1919
args: [--fix, --exit-non-zero-on-fix]

referencing/_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def from_contents(
205205
if the given contents don't have any discernible
206206
information which could be used to guess which
207207
specification they identify as
208+
208209
"""
209210
specification = default_specification.detect(contents)
210211
return specification.create_resource(contents=contents)
@@ -254,6 +255,7 @@ def pointer(self, pointer: str, resolver: Resolver[D]) -> Resolved[D]:
254255
`exceptions.PointerToNowhere`
255256
256257
if the pointer points to a location not present in the document
258+
257259
"""
258260
contents = self.contents
259261
segments: list[int | str] = []
@@ -369,6 +371,7 @@ def __rmatmul__(
369371
`NoInternalID`
370372
371373
if the resource(s) in fact do not have IDs
374+
372375
"""
373376
if isinstance(new, Resource):
374377
new = (new,)
@@ -658,6 +661,7 @@ def lookup(self, ref: URI) -> Resolved[D]:
658661
if the reference is to a URI where a resource exists but
659662
contains a JSON pointer to a location within the resource
660663
that does not exist
664+
661665
"""
662666
if ref.startswith("#"):
663667
uri, fragment = self._base_uri, ref[1:]

referencing/jsonschema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ def specification_with(
575575
`UnknownDialect`
576576
577577
if the given ``dialect_id`` isn't known
578+
578579
"""
579580
resource = _SPECIFICATIONS.get(dialect_id.rstrip("#"))
580581
if resource is not None:

referencing/typing.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def __call__(self, uri: URI) -> Resource[D]:
3838
Raise `referencing.exceptions.NoSuchResource` if you wish to indicate
3939
the retriever cannot lookup the given URI.
4040
"""
41-
...
4241

4342

4443
class Anchor(Protocol[D]):
@@ -54,10 +53,8 @@ def name(self) -> str:
5453
"""
5554
Return the name of this anchor.
5655
"""
57-
...
5856

5957
def resolve(self, resolver: Resolver[D]) -> Resolved[D]:
6058
"""
6159
Return the resource for this anchor.
6260
"""
63-
...

0 commit comments

Comments
 (0)