Skip to content

Commit

Permalink
chore: appease black and flake8 at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Aug 8, 2024
1 parent 39fc70d commit 0779fd5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pybedlite/tests/test_overlap_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,9 @@ def test_construction_from_ucsc_with_strand(strand: str) -> None:
"""
`Interval.from_ucsc()` should correctly parse UCSC position-formatted strings with strands.
"""
# false positive lint with flake8 below
expected_interval = Interval("chr1", 100, 200, negative=(strand == "-"))
assert (
Interval.from_ucsc(f"chr1:101-200({strand})") == expected_interval
) # noqa: E231 # false positive lint with flake8
assert Interval.from_ucsc(f"chr1:101-200({strand})") == expected_interval # noqa: E231


@pytest.mark.parametrize(
Expand All @@ -225,9 +224,8 @@ def test_construction_from_ucsc_other_contigs(contig: str) -> None:
"""
`Interval.from_ucsc()` should accommodate non-human, decoy, custom, and other contig names.
"""
assert Interval.from_ucsc(f"{contig}:101-200") == Interval(
contig, 100, 200
) # noqa: E231 # false positive lint with flake8
# false positive lint with flake8 below
assert Interval.from_ucsc(f"{contig}:101-200") == Interval(contig, 100, 200) # noqa: E231


def test_that_overlap_detector_allows_generic_parameterization() -> None:
Expand Down

0 comments on commit 0779fd5

Please sign in to comment.