From ebc577891827610aa0881b5624cfc77e9ed86484 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Mon, 14 Oct 2024 15:20:47 +0530 Subject: [PATCH] Allow `ipytest` cell magic --- crates/ruff_notebook/src/cell.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/crates/ruff_notebook/src/cell.rs b/crates/ruff_notebook/src/cell.rs index 1d7985e4a37aa..c917dd16274b8 100644 --- a/crates/ruff_notebook/src/cell.rs +++ b/crates/ruff_notebook/src/cell.rs @@ -238,9 +238,19 @@ impl Cell { // // This is to avoid false positives when these variables are referenced // elsewhere in the notebook. + // + // Refer https://github.com/astral-sh/ruff/issues/13718 for `ipytest`. !matches!( command, - "capture" | "debug" | "prun" | "pypy" | "python" | "python3" | "time" | "timeit" + "capture" + | "debug" + | "ipytest" + | "prun" + | "pypy" + | "python" + | "python3" + | "time" + | "timeit" ) }) }