Skip to content

Commit 9ee9f3d

Browse files
Ignore ruff/Pylint rule PLR0124
PLR0124 Name compared with itself
1 parent 6a7844e commit 9ee9f3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ ignore = [
293293
[tool.ruff.lint.per-file-ignores]
294294
# don't enforce absolute imports
295295
"asv_bench/**" = ["TID252"]
296+
# comparison with itself in tests
297+
"xarray/tests/**" = ["PLR0124"]
296298
# looks like ruff bugs
297299
"xarray/core/_typed_ops.py" = ["PYI034"]
298300
"xarray/namedarray/_typing.py" = ["PYI018", "PYI046"]

xarray/core/duck_array_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def isnull(data):
193193
# types. For full consistency with pandas, we should accept None as
194194
# a null value as well as NaN, but it isn't clear how to do this
195195
# with duck typing.
196-
return data != data
196+
return data != data # noqa: PLR0124
197197

198198

199199
def notnull(data):

0 commit comments

Comments
 (0)