Skip to content

Commit 1abb17f

Browse files
committed
Fix some ruff warnings
1 parent 8a2f8df commit 1abb17f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ write_to = "xbout/_version.py"
7979
[tool.setuptools]
8080
packages = ["xbout"]
8181

82-
[tool.ruff]
82+
[tool.ruff.lint]
8383
ignore = ["E501"]

xbout/plotting/plotfuncs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,10 +929,10 @@ def plot2d_polygon(
929929
if vmax is None:
930930
vmax = np.nanmax(da.max().values)
931931

932-
if colorbar_label == None:
932+
if colorbar_label is None:
933933
if "short_name" in da.attrs:
934934
colorbar_label = da.attrs["short_name"]
935-
elif da.name != None:
935+
elif da.name is not None:
936936
colorbar_label = da.name
937937
else:
938938
colorbar_label = ""

0 commit comments

Comments
 (0)