From 8d395f3ae9d99eae09990cf40501b9aec83dda0f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 16 Jul 2026 10:58:18 -0500 Subject: [PATCH] Switch to ruff:ignore --- array.py | 2 +- dtypes.py | 2 +- pyproject.toml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/array.py b/array.py index 49ee2b3..3ae02f0 100644 --- a/array.py +++ b/array.py @@ -151,7 +151,7 @@ def get_common_dtype(obj1: ArrayIsh, obj2: ArrayIsh, raise RuntimeError("numpy's as_strided is broken") as_strided = _as_strided -except Exception: # noqa: BLE001 +except Exception: # ruff:ignore[blind-except] # stolen from numpy to be compatible with older versions of numpy class _DummyArray: """ Dummy object that just exists to hang __array_interface__ dictionaries diff --git a/dtypes.py b/dtypes.py index be3e1ff..fd242ca 100644 --- a/dtypes.py +++ b/dtypes.py @@ -33,7 +33,7 @@ from numpy.typing import DTypeLike -class TypeNameNotKnown(RuntimeError): # noqa: N818 +class TypeNameNotKnown(RuntimeError): # ruff:ignore[error-suffix-on-exception-name] pass diff --git a/pyproject.toml b/pyproject.toml index b089426..294d8bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,8 @@ extend-select = [ ] extend-ignore = [ "C90", # McCabe complexity - "E402", # module level import not at the top of file - "E226", # missing whitespace around operator + "module-import-not-at-top-of-file", + "missing-whitespace-around-arithmetic-operator", ] [tool.ruff.lint.flake8-quotes]