Skip to content

Commit 0a6c42a

Browse files
committed
Lint
1 parent 3f26635 commit 0a6c42a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

v03_pipeline/lib/annotations/shared_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
class SharedAnnotationsTest(unittest.TestCase):
1313
@patch('v03_pipeline.lib.vep.validate_vep_config_reference_genome')
1414
@patch('v03_pipeline.lib.vep.hl.vep')
15-
def test_sorted_transcript_consequences(self, mock_vep: Mock, mock_validate: Mock) -> None:
15+
def test_sorted_transcript_consequences(
16+
self,
17+
mock_vep: Mock,
18+
mock_validate: Mock,
19+
) -> None:
1620
ht = hl.Table.parallelize(
1721
[
1822
{

v03_pipeline/lib/vep.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
from v03_pipeline.lib.model import DatasetType, ReferenceGenome
44

5+
56
def validate_vep_config_reference_genome(reference_genome, config: str) -> None:
6-
with open(config, 'r') as f:
7-
if reference_genome.value not in myfile.read():
7+
with open(config) as f:
8+
if reference_genome.value not in f.read():
89
msg = f'Vep config does not match supplied reference genome {reference_genome.value}'
910
raise ValueError(msg)
1011

12+
1113
def run_vep(
1214
ht: hl.Table,
1315
dataset_type: DatasetType,

0 commit comments

Comments
 (0)