From 6e9af051ccbc683b5c8b747dfdcd5a6e25ed4cca Mon Sep 17 00:00:00 2001 From: Henning Timm Date: Mon, 25 Mar 2024 20:34:23 +0100 Subject: [PATCH] Formatted with black --- tests/integration_tests.py | 7 +++++-- yml2block/__main__.py | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/integration_tests.py b/tests/integration_tests.py index 39d7d27..239eccb 100644 --- a/tests/integration_tests.py +++ b/tests/integration_tests.py @@ -30,12 +30,15 @@ def test_minimal_valid_example_convert(): path_expected = "tests/valid/minimal_working_example_expected.tsv" path_output = "/tmp/y2b_mwe.tsv" result = runner.invoke( - yml2block.__main__.main, ["convert", "tests/valid/minimal_working_example.yml", "-o", path_output] + yml2block.__main__.main, + ["convert", "tests/valid/minimal_working_example.yml", "-o", path_output], ) print(result) print(result.stdout) assert result.exit_code == 0, result.stdout - with open(path_output, "r") as converted_file, open(path_expected, "r") as expected_file: + with open(path_output, "r") as converted_file, open( + path_expected, "r" + ) as expected_file: converted_tsv = converted_file.read() expected_tsv = expected_file.read() assert converted_tsv == expected_tsv diff --git a/yml2block/__main__.py b/yml2block/__main__.py index 91bdd60..edecf1d 100644 --- a/yml2block/__main__.py +++ b/yml2block/__main__.py @@ -144,7 +144,9 @@ def return_violations(lint_violations, warn_ec, verbose): print("Errors detected. File(s) cannot safely be converted to TSV.") sys.exit(1) elif max_severity == Level.WARNING: - print("Warnings detected. File(s) can probably not be safely converted to TSV.") + print( + "Warnings detected. File(s) can probably not be safely converted to TSV." + ) sys.exit(warn_ec) elif max_severity == Level.NONE: print("\nAll Checks passed! 🎉 Safe covnersion is possible.\n\n")