Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 16195a0

Browse files
Black linting
1 parent 1a2d5c4 commit 16195a0

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

graphkb/genes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Methods for retrieving gene annotation lists from GraphKB."""
2+
23
from typing import Any, Dict, List, Sequence, Set, Tuple, cast
34

45
from . import GraphKBConnection

graphkb/match.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Functions which return Variants from GraphKB which match some input variant definition
33
"""
4+
45
from typing import Dict, List, Optional, Set, Union, cast
56

67
from . import GraphKBConnection
@@ -303,9 +304,11 @@ def compare_positional_variants(
303304
if not positions_overlap(
304305
cast(BasicPosition, variant["break1Start"]),
305306
cast(BasicPosition, reference_variant["break1Start"]),
306-
None
307-
if "break1End" not in reference_variant
308-
else cast(BasicPosition, reference_variant["break1End"]),
307+
(
308+
None
309+
if "break1End" not in reference_variant
310+
else cast(BasicPosition, reference_variant["break1End"])
311+
),
309312
):
310313
return False
311314

@@ -318,9 +321,11 @@ def compare_positional_variants(
318321
if not positions_overlap(
319322
cast(BasicPosition, variant["break2Start"]),
320323
cast(BasicPosition, reference_variant["break2Start"]),
321-
None
322-
if "break2End" not in reference_variant
323-
else cast(BasicPosition, reference_variant["break2End"]),
324+
(
325+
None
326+
if "break2End" not in reference_variant
327+
else cast(BasicPosition, reference_variant["break2End"])
328+
),
324329
):
325330
return False
326331

tests/data.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Array of variants (diplayName and type) that MUST NOT be matching, but not restricted to
66
"""
77

8-
98
# Screening structural variant to rule out small events [KBDEV_1056]
109
structuralVariants = {
1110
# Unambiguous structural variations

tests/test_genes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Tests here depend on specific data in GraphKB which can change. To avoid this, expected/stable values are chosen
33
"""
4+
45
import os
56

67
import pytest

tests/test_vocab.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Tests here depend on specific data in GraphKB which can change. To avoid this, expected/stable values are chosen
33
"""
4+
45
import os
56

67
import pytest

0 commit comments

Comments
 (0)