Skip to content
Merged
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
2 changes: 1 addition & 1 deletion array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading