Skip to content

Commit

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


@pytest.mark.parametrize(
Expand All @@ -223,7 +223,7 @@ 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)
assert Interval.from_ucsc(f"{contig}:101-200") == Interval(contig, 100, 200) # noqa: E231 # false positive lint with flake8


def test_that_overlap_detector_allows_generic_parameterization() -> None:
Expand Down

0 comments on commit 6a41783

Please sign in to comment.