Skip to content

Commit 87d2d6e

Browse files
committed
Run and apply pre-commit autoupdate
No effects were observed on Make-managed files. Signed-off-by: Alex Nelson <[email protected]>
1 parent d5c8299 commit 87d2d6e

File tree

4 files changed

+25
-19
lines changed

4 files changed

+25
-19
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.12.1
3+
rev: 24.10.0
44
hooks:
55
- id: black
66
- repo: https://github.com/pycqa/flake8
7-
rev: 7.0.0
7+
rev: 7.1.1
88
hooks:
99
- id: flake8
1010
- repo: https://github.com/pycqa/isort

case_utils/case_sparql_construct/__init__.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ def main() -> None:
4242

4343
# Configure debug logging before running parse_args, because there could be an error raised before the construction of the argument parser.
4444
logging.basicConfig(
45-
level=logging.DEBUG
46-
if ("--debug" in sys.argv or "-d" in sys.argv)
47-
else logging.INFO
45+
level=(
46+
logging.DEBUG
47+
if ("--debug" in sys.argv or "-d" in sys.argv)
48+
else logging.INFO
49+
)
4850
)
4951

5052
parser.add_argument("-d", "--debug", action="store_true")

case_utils/case_sparql_select/__init__.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ def main() -> None:
197197

198198
# Configure debug logging before running parse_args, because there could be an error raised before the construction of the argument parser.
199199
logging.basicConfig(
200-
level=logging.DEBUG
201-
if ("--debug" in sys.argv or "-d" in sys.argv)
202-
else logging.INFO
200+
level=(
201+
logging.DEBUG
202+
if ("--debug" in sys.argv or "-d" in sys.argv)
203+
else logging.INFO
204+
)
203205
)
204206

205207
parser.add_argument("-d", "--debug", action="store_true")

case_utils/case_validate/__init__.py

+13-11
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ def validate(
120120
)
121121

122122
# Validate data graph against ontology graph.
123-
validate_result: Tuple[
124-
bool, Union[Exception, bytes, str, rdflib.Graph], str
125-
] = pyshacl.validate(
126-
data_graph,
127-
*args,
128-
ont_graph=ontology_graph,
129-
shacl_graph=ontology_graph,
130-
**kwargs,
123+
validate_result: Tuple[bool, Union[Exception, bytes, str, rdflib.Graph], str] = (
124+
pyshacl.validate(
125+
data_graph,
126+
*args,
127+
ont_graph=ontology_graph,
128+
shacl_graph=ontology_graph,
129+
**kwargs,
130+
)
131131
)
132132

133133
# Relieve RAM of the data graph after validation has run.
@@ -159,9 +159,11 @@ def main() -> None:
159159
# could be an error raised before the construction of the argument
160160
# parser.
161161
logging.basicConfig(
162-
level=logging.DEBUG
163-
if ("--debug" in sys.argv or "-d" in sys.argv)
164-
else logging.INFO
162+
level=(
163+
logging.DEBUG
164+
if ("--debug" in sys.argv or "-d" in sys.argv)
165+
else logging.INFO
166+
)
165167
)
166168

167169
# Add arguments specific to case_validate.

0 commit comments

Comments
 (0)