File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ ignore = [
293
293
[tool .ruff .lint .per-file-ignores ]
294
294
# don't enforce absolute imports
295
295
"asv_bench/**" = [" TID252" ]
296
+ # comparison with itself in tests
297
+ "xarray/tests/**" = [" PLR0124" ]
296
298
# looks like ruff bugs
297
299
"xarray/core/_typed_ops.py" = [" PYI034" ]
298
300
"xarray/namedarray/_typing.py" = [" PYI018" , " PYI046" ]
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def isnull(data):
193
193
# types. For full consistency with pandas, we should accept None as
194
194
# a null value as well as NaN, but it isn't clear how to do this
195
195
# with duck typing.
196
- return data != data
196
+ return data != data # noqa: PLR0124
197
197
198
198
199
199
def notnull (data ):
You can’t perform that action at this time.
0 commit comments