Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: check-case-conflict

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
rev: v0.16.1
hooks:
- id: ruff-check
types_or: [python, pyi, jupyter]
Expand All @@ -30,7 +30,7 @@ repos:
- id: text-unicode-replacement-char

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.7.3
rev: v3.9.6
hooks:
- id: prettier
args: ["--cache-location=.prettier_cache/cache"]
2 changes: 1 addition & 1 deletion src/bioframe/core/arrops.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
INT64_MAX = np.iinfo(np.int64).max


def natsort_key(s, _NS_REGEX=re.compile(r"(\d+)", re.U)):
def natsort_key(s, _NS_REGEX=re.compile(r"(\d+)", re.UNICODE)):
return tuple([int(x) if x.isdigit() else x for x in _NS_REGEX.split(s) if x])


Expand Down
3 changes: 1 addition & 2 deletions src/bioframe/sandbox/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def __init__(self, cachedir, assembly, metadata=None):
with requests.get(self.METADATA_URL, stream=True) as r:
r.raise_for_status()
with open(metadata_path, "wb") as f:
for chunk in r.iter_content(chunk_size=8192):
f.write(chunk)
f.writelines(r.iter_content(chunk_size=8192))

self._meta = pd.read_table(metadata_path, low_memory=False)
table_assemblies = sorted(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

import bioframe
import bioframe.core.checks as checks
from bioframe.core import checks
from bioframe.core.construction import make_viewframe

# import pyranges as pr
Expand Down
Loading