Skip to content

Commit 423a3ec

Browse files
committed
Updating pre-commit hooks
1 parent 037218f commit 423a3ec

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ repos:
2929
hooks:
3030
- id: mypy
3131
additional_dependencies:
32-
- pydantic==2.1.1
33-
- pydantic-settings==2.0.3
32+
- pydantic==2.12.4
33+
- pydantic-settings==2.12.0
3434
exclude: "^(build|docs|tests|benchmark|examples)"
3535
- repo: https://github.com/asottile/pyupgrade
3636
rev: v3.10.1

bigwig_loader/bigwig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def _guess_max_rows_per_chunk(
424424
data_offsets = self.rtree_leaf_nodes["data_offset"]
425425
data_sizes = self.rtree_leaf_nodes["data_size"]
426426
if len(data_offsets) > sample_size:
427-
sample_indices = sample(range(len(data_offsets)), sample_size)
427+
sample_indices = sample(range(len(data_offsets)), sample_size) # nosec
428428
data_offsets = data_offsets[sample_indices]
429429
data_sizes = data_sizes[sample_indices]
430430

bigwig_loader/sampler/track_sampler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ def __init__(self, total_number_of_tracks: int, sample_size: int):
99

1010
def __iter__(self) -> Iterator[list[int]]:
1111
while True:
12-
yield sorted(sample(range(self.total_number_of_tracks), self.sample_size))
12+
yield sorted(
13+
sample(range(self.total_number_of_tracks), self.sample_size) # nosec
14+
)

0 commit comments

Comments
 (0)