Skip to content

Commit

Permalink
Run pre-commit autoupdate; update RDFLib type signatures
Browse files Browse the repository at this point in the history
Due to a revision in RDFLib type signature requirements with 6.3.0, and
an overlapping-in-maintenance-period break in a `pre-commit` package,
this patch batches updates to fix two dependencies' issues at once.

This patch is built off of `main` because this could potentially be part
of a bugfix release.

References:
* RDFLib/rdflib#2283
  • Loading branch information
ajnelson-nist committed Mar 20, 2023
1 parent b340647 commit 42a51f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
7 changes: 5 additions & 2 deletions tests/as_import/test_as_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

import case_utils.ontology
import rdflib.plugins.sparql
from rdflib import URIRef
from rdflib.query import ResultRow

_logger = logging.getLogger(os.path.basename(__file__))

Expand Down Expand Up @@ -63,8 +65,9 @@ def _test_as_import_query(graph_filename: str) -> None:
results = graph.query(query)
_logger.debug("len(results) = %d." % len(results))
for result in results:
_logger.debug("result = %r." % result)
(n_process_object,) = result
assert isinstance(result, ResultRow)
assert isinstance(result[0], URIRef)
n_process_object = result[0]
assert n_process_object is not None
iris.add(n_process_object.toPython())
assert len(iris) == 1
Expand Down

0 comments on commit 42a51f3

Please sign in to comment.