Skip to content

Commit 0230ec0

Browse files
committed
Fix lint errors
1 parent eda5654 commit 0230ec0

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

bio2zarr/bed2zarr.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,6 @@ class BedType(Enum):
3030
BED12 = 12
3131

3232

33-
class BedColumns(Enum):
34-
contig = 0
35-
start = 1
36-
end = 2
37-
name = 3
38-
score = 4
39-
strand = 5
40-
thickStart = 6
41-
thickEnd = 7
42-
itemRgb = 8
43-
blockCount = 9
44-
blockSizes = 10
45-
blockStarts = 11
46-
47-
4833
@dataclasses.dataclass
4934
class ZarrArraySpec:
5035
name: str

tests/test_bed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ class TestBedData:
132132
@pytest.mark.parametrize("bed_data", ALL_BED_FORMATS, indirect=True)
133133
def test_guess_bed_type_from_path(self, bed_path, request):
134134
bedspec = request.node.callspec.params["bed_data"]
135+
match_str = rf"(got {bedspec}|prohibited|unsupported)"
135136
if bedspec not in SUPPORTED_BED_FORMATS:
136-
with pytest.raises(ValueError):
137+
with pytest.raises(ValueError, match=match_str):
137138
bed2zarr.guess_bed_file_type(bed_path)
138139
else:
139140
bed_type = bed2zarr.guess_bed_file_type(bed_path)

0 commit comments

Comments
 (0)