diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 316db75b6..d568a849f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.14 + rev: v0.1.15 hooks: - id: ruff args: diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py index 9917e326e..6cbb6efd9 100644 --- a/bitsandbytes/autograd/_functions.py +++ b/bitsandbytes/autograd/_functions.py @@ -1,8 +1,8 @@ -import operator -import warnings from dataclasses import dataclass from functools import reduce # Required in Python 3 -from typing import Tuple, Optional, Callable +import operator +from typing import Callable, Optional, Tuple +import warnings from warnings import warn import torch diff --git a/bitsandbytes/functional.py b/bitsandbytes/functional.py index 455b1d4b8..1f624a7a8 100644 --- a/bitsandbytes/functional.py +++ b/bitsandbytes/functional.py @@ -7,9 +7,9 @@ import itertools import operator from typing import Any, Dict, Optional, Tuple + import numpy as np import torch - from torch import Tensor from bitsandbytes.utils import pack_dict_to_tensor, unpack_tensor_to_dict diff --git a/bitsandbytes/research/autograd/_functions.py b/bitsandbytes/research/autograd/_functions.py index 193d8407b..e515bfeff 100644 --- a/bitsandbytes/research/autograd/_functions.py +++ b/bitsandbytes/research/autograd/_functions.py @@ -1,4 +1,3 @@ -from dataclasses import dataclass from functools import reduce # Required in Python 3 import operator from typing import Optional