Skip to content

Commit c67e643

Browse files
committed
style: Fix code formatting with Black
1 parent e941da5 commit c67e643

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

cve_bin_tool/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ def main(argv=None):
914914
"Consult the documentation at https://cve-bin-tool.readthedocs.io/en/latest/how_to_guides/offline.html to find out how to setup offline operation."
915915
)
916916
return ERROR_CODES[CVEDBOutdatedSchema]
917-
917+
918918
# If running in update-only mode, exit now
919919
if args.get("update_only", False):
920920
LOGGER.info("Database update completed. Exiting without scanning.")
@@ -991,7 +991,7 @@ def main(argv=None):
991991
and not args["vex_file"]
992992
):
993993
args["directory"] = "" # Set a dummy value to pass validation
994-
994+
995995
# Input validation
996996
if (
997997
not args["directory"]

test/test_cli.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -275,26 +275,28 @@ def test_update(self, caplog):
275275
) in caplog.record_tuples
276276
caplog.clear()
277277

278-
@pytest.mark.skipif(not LONG_TESTS(), reason="Update-only flag tests are long tests")
278+
@pytest.mark.skipif(
279+
not LONG_TESTS(), reason="Update-only flag tests are long tests"
280+
)
279281
def test_update_only(self, caplog):
280282
"""Test the --update-only flag"""
281283
with caplog.at_level(logging.INFO):
282284
main(["cve-bin-tool", "--update-only"])
283-
285+
284286
# Check that we see the update-only mode message
285287
assert (
286288
"cve_bin_tool",
287289
logging.INFO,
288290
"Running in update-only mode",
289291
) in caplog.record_tuples
290-
292+
291293
# Check that we see the completion message
292294
assert (
293295
"cve_bin_tool",
294296
logging.INFO,
295297
"Database update completed. Exiting without scanning.",
296298
) in caplog.record_tuples
297-
299+
298300
caplog.clear()
299301

300302
def test_unknown_warning(self, caplog):

test/test_language_scanner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def test_language_package(
281281
if product_info.product not in found_product:
282282
found_product.append(product_info.product)
283283
break # Stop after finding one product
284-
284+
285285
# Only check if at least one product was found
286286
assert len(found_product) > 0
287287
assert file_path == filename

0 commit comments

Comments
 (0)