Skip to content

Commit 8446f3f

Browse files
Merge branch 'main' into saurav/configs
2 parents 8b37f75 + 31eeb60 commit 8446f3f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bitsandbytes/cextension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_cuda_bnb_library_path(cuda_specs: CUDASpecs) -> Path:
4545

4646
override_value = os.environ.get("BNB_CUDA_VERSION")
4747
if override_value:
48-
library_name = re.sub("cuda\d+", f"cuda{override_value}", library_name, count=1)
48+
library_name = re.sub(r"cuda\d+", f"cuda{override_value}", library_name, count=1)
4949
logger.warning(
5050
f"WARNING: BNB_CUDA_VERSION={override_value} environment variable detected; loading {library_name}.\n"
5151
"This can be used to load a bitsandbytes version that is different from the PyTorch CUDA version.\n"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ line-length = 119
100100
[tool.ruff.lint]
101101
select = [
102102
"B", # bugbear: security warnings
103-
"E", # pycodestyle
103+
"E", # pycodestyle (error)
104+
"W", # pycodestyle (warning)
104105
"F", # pyflakes
105106
"I", # isort
106107
"ISC", # implicit string concatenation

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from setuptools import find_packages, setup
66
from setuptools.dist import Distribution
77

8-
98
# Tested with wheel v0.29.0
109
class BinaryDistribution(Distribution):
1110
def has_ext_modules(self):

0 commit comments

Comments
 (0)