We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2f8df commit 1abb17fCopy full SHA for 1abb17f
pyproject.toml
@@ -79,5 +79,5 @@ write_to = "xbout/_version.py"
79
[tool.setuptools]
80
packages = ["xbout"]
81
82
-[tool.ruff]
+[tool.ruff.lint]
83
ignore = ["E501"]
xbout/plotting/plotfuncs.py
@@ -929,10 +929,10 @@ def plot2d_polygon(
929
if vmax is None:
930
vmax = np.nanmax(da.max().values)
931
932
- if colorbar_label == None:
+ if colorbar_label is None:
933
if "short_name" in da.attrs:
934
colorbar_label = da.attrs["short_name"]
935
- elif da.name != None:
+ elif da.name is not None:
936
colorbar_label = da.name
937
else:
938
colorbar_label = ""
0 commit comments