Skip to content

Commit 7d6d23a

Browse files
tomwhitejeromekelleher
authored andcommitted
Fix linting
1 parent 4e85013 commit 7d6d23a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/test_bcftools_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def test_vcf_output_with_output_option(tmp_path, args, vcf_file):
192192
"sample.vcf.gz"
193193
),
194194
(
195-
r"query -f '[%CHROM %POS %SAMPLE %GT %DP %GQ\n]' -i 'FMT/DP>3 && FMT/GQ>30'",
195+
r"query -f '[%CHROM %POS %SAMPLE %GT %DP %GQ\n]' -i 'FMT/DP>3 && FMT/GQ>30'", # noqa: E501
196196
"sample.vcf.gz"
197197
),
198198
],

tests/test_query.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,14 @@ def test(self, root, query_format, expected_result):
136136
result = "".join(generator(chunk_data))
137137
assert result == expected_result
138138

139+
# fmt: off
139140
@pytest.mark.parametrize(
140141
("query_format", "call_mask", "expected_result"),
141142
[
142143
(
143144
r"[%DP ]\n",
144145
None,
145-
". . . \n. . . \n1 8 5 \n3 5 3 \n6 0 4 \n. 4 2 \n4 2 3 \n. . . \n. . . \n",
146+
". . . \n. . . \n1 8 5 \n3 5 3 \n6 0 4 \n. 4 2 \n4 2 3 \n. . . \n. . . \n", # noqa: E501
146147
),
147148
(
148149
r"[%DP ]\n",
@@ -159,10 +160,11 @@ def test(self, root, query_format, expected_result):
159160
[1, 1, 1,],
160161
]
161162
),
162-
". . . \n. . . \n1 5 \n3 5 3 \n6 0 4 \n. 4 2 \n4 2 3 \n. . . \n. . . \n",
163+
". . . \n. . . \n1 5 \n3 5 3 \n6 0 4 \n. 4 2 \n4 2 3 \n. . . \n. . . \n", # noqa: E501
163164
),
164165
],
165166
)
167+
# fmt: on
166168
def test_call_mask(self, root, query_format, call_mask, expected_result):
167169
generator = QueryFormatGenerator(root, query_format)
168170
chunk_data = next(variant_chunk_iter(root))

0 commit comments

Comments
 (0)