Skip to content

Commit d4681da

Browse files
Update pre-commit hook pre-commit (#10461)
* Ignore ruff/Pylint Warning PLW0177 PLW0177 Comparing against a NaN value; use `np.isnan` instead * Update pre-commit hook pre-commit
1 parent 6a7844e commit d4681da

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ repos:
2424
- id: rst-inline-touching-normal
2525
- id: text-unicode-replacement-char
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
# Ruff version.
28-
rev: v0.11.12
27+
rev: v0.12.1
2928
hooks:
3029
- id: ruff-format
3130
- id: ruff

xarray/core/duck_array_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def isna(data: Any) -> bool:
157157
-------
158158
Whether or not the data is np.nan or pd.NA
159159
"""
160-
return data is pd.NA or data is np.nan
160+
return data is pd.NA or data is np.nan # noqa: PLW0177
161161

162162

163163
def isnull(data):

0 commit comments

Comments
 (0)