Skip to content

Commit 6e9af05

Browse files
committed
Formatted with black
1 parent ae852d6 commit 6e9af05

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/integration_tests.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ def test_minimal_valid_example_convert():
3030
path_expected = "tests/valid/minimal_working_example_expected.tsv"
3131
path_output = "/tmp/y2b_mwe.tsv"
3232
result = runner.invoke(
33-
yml2block.__main__.main, ["convert", "tests/valid/minimal_working_example.yml", "-o", path_output]
33+
yml2block.__main__.main,
34+
["convert", "tests/valid/minimal_working_example.yml", "-o", path_output],
3435
)
3536
print(result)
3637
print(result.stdout)
3738
assert result.exit_code == 0, result.stdout
38-
with open(path_output, "r") as converted_file, open(path_expected, "r") as expected_file:
39+
with open(path_output, "r") as converted_file, open(
40+
path_expected, "r"
41+
) as expected_file:
3942
converted_tsv = converted_file.read()
4043
expected_tsv = expected_file.read()
4144
assert converted_tsv == expected_tsv

yml2block/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ def return_violations(lint_violations, warn_ec, verbose):
144144
print("Errors detected. File(s) cannot safely be converted to TSV.")
145145
sys.exit(1)
146146
elif max_severity == Level.WARNING:
147-
print("Warnings detected. File(s) can probably not be safely converted to TSV.")
147+
print(
148+
"Warnings detected. File(s) can probably not be safely converted to TSV."
149+
)
148150
sys.exit(warn_ec)
149151
elif max_severity == Level.NONE:
150152
print("\nAll Checks passed! 🎉 Safe covnersion is possible.\n\n")

0 commit comments

Comments
 (0)