Skip to content

Commit e3c8685

Browse files
committed
Run and apply pre-commit autoupdate
This patch isolates a change needed to get patch-releases atop 0.5.0 to pass Continuous Integration. This patch alone will not pass CI; see the following octopus merge for a commit that passes CI. No effects were observed on Make-managed files. Signed-off-by: Alex Nelson <[email protected]>
1 parent 33d9565 commit e3c8685

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.3.0
3+
rev: 23.12.0
44
hooks:
55
- id: black

case_utils/case_file/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
DEFAULT_PREFIX = "http://example.org/kb/"
3434

35+
3536
# Shortcut syntax for defining an immutable named tuple is noted here:
3637
# https://docs.python.org/3/library/typing.html#typing.NamedTuple
3738
# via the "See also" box here: https://docs.python.org/3/library/collections.html#collections.namedtuple

case_utils/case_sparql_construct/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def main() -> None:
9696
construct_query_result = in_graph.query(construct_query_object)
9797
_logger.debug("type(construct_query_result) = %r." % type(construct_query_result))
9898
_logger.debug("len(construct_query_result) = %d." % len(construct_query_result))
99-
for (row_no, row) in enumerate(construct_query_result):
99+
for row_no, row in enumerate(construct_query_result):
100100
if row_no == 0:
101101
_logger.debug("row[0] = %r." % (row,))
102102
out_graph.add(row)

case_utils/case_sparql_select/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def main() -> None:
109109
select_query_object = rdflib.plugins.sparql.prepareQuery(
110110
select_query_text, initNs=nsdict
111111
)
112-
for (row_no, row) in enumerate(graph.query(select_query_object)):
112+
for row_no, row in enumerate(graph.query(select_query_object)):
113113
tally = row_no + 1
114114
record = []
115-
for (column_no, column) in enumerate(row):
115+
for column_no, column in enumerate(row):
116116
if column is None:
117117
column_value = ""
118118
elif (

0 commit comments

Comments
 (0)