Skip to content

Commit

Permalink
Black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieulemieux committed Mar 1, 2024
1 parent 1a2d5c4 commit 16195a0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions graphkb/genes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Methods for retrieving gene annotation lists from GraphKB."""

from typing import Any, Dict, List, Sequence, Set, Tuple, cast

from . import GraphKBConnection
Expand Down
17 changes: 11 additions & 6 deletions graphkb/match.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions which return Variants from GraphKB which match some input variant definition
"""

from typing import Dict, List, Optional, Set, Union, cast

from . import GraphKBConnection
Expand Down Expand Up @@ -303,9 +304,11 @@ def compare_positional_variants(
if not positions_overlap(
cast(BasicPosition, variant["break1Start"]),
cast(BasicPosition, reference_variant["break1Start"]),
None
if "break1End" not in reference_variant
else cast(BasicPosition, reference_variant["break1End"]),
(
None
if "break1End" not in reference_variant
else cast(BasicPosition, reference_variant["break1End"])
),
):
return False

Expand All @@ -318,9 +321,11 @@ def compare_positional_variants(
if not positions_overlap(
cast(BasicPosition, variant["break2Start"]),
cast(BasicPosition, reference_variant["break2Start"]),
None
if "break2End" not in reference_variant
else cast(BasicPosition, reference_variant["break2End"]),
(
None
if "break2End" not in reference_variant
else cast(BasicPosition, reference_variant["break2End"])
),
):
return False

Expand Down
1 change: 0 additions & 1 deletion tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Array of variants (diplayName and type) that MUST NOT be matching, but not restricted to
"""


# Screening structural variant to rule out small events [KBDEV_1056]
structuralVariants = {
# Unambiguous structural variations
Expand Down
1 change: 1 addition & 0 deletions tests/test_genes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests here depend on specific data in GraphKB which can change. To avoid this, expected/stable values are chosen
"""

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_vocab.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests here depend on specific data in GraphKB which can change. To avoid this, expected/stable values are chosen
"""

import os

import pytest
Expand Down

0 comments on commit 16195a0

Please sign in to comment.