From 7e8286a514213447f8588d88e48b7cbeb8e78d5c Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Fri, 24 Jan 2025 17:27:01 -0600 Subject: [PATCH] Ignore E711 in missing-data.ipynb --- docs/cudf/source/user_guide/missing-data.ipynb | 4 ++-- pyproject.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/cudf/source/user_guide/missing-data.ipynb b/docs/cudf/source/user_guide/missing-data.ipynb index 36600c9bcfb..b4f1f43ee51 100644 --- a/docs/cudf/source/user_guide/missing-data.ipynb +++ b/docs/cudf/source/user_guide/missing-data.ipynb @@ -252,7 +252,7 @@ } ], "source": [ - "None is None" + "None == None" ] }, { @@ -364,7 +364,7 @@ } ], "source": [ - "s is None" + "s == None" ] }, { diff --git a/pyproject.toml b/pyproject.toml index c12cc1681e2..c906b9998e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,6 +120,8 @@ exclude = [ ] [tool.ruff.lint.per-file-ignores] +# We use "== None" to demonstrate null handling in this notebook +"docs/cudf/source/user_guide/missing-data.ipynb" = ["E711"] # Lots of pytest implicitly injected attributes in conftest-patch.py "python/cudf/cudf/pandas/scripts/conftest-patch.py" = ["F821"] "python/cudf/cudf/pandas/scripts/*" = ["D"]