diff --git a/crates/ruff/src/jupyter/notebook.rs b/crates/ruff/src/jupyter/notebook.rs index d7381cf56f5969..12a4833b394923 100644 --- a/crates/ruff/src/jupyter/notebook.rs +++ b/crates/ruff/src/jupyter/notebook.rs @@ -43,9 +43,6 @@ pub fn round_trip(path: &Path) -> anyhow::Result { pub fn is_jupyter_notebook(path: &Path) -> bool { path.extension() .map_or(false, |ext| ext == JUPYTER_NOTEBOOK_EXT) - // For now this is feature gated here, the long term solution depends on - // https://github.com/astral-sh/ruff/issues/3410 - && cfg!(feature = "jupyter_notebook") } impl Cell { @@ -410,7 +407,6 @@ mod test { use test_case::test_case; use crate::jupyter::index::JupyterIndex; - #[cfg(feature = "jupyter_notebook")] use crate::jupyter::is_jupyter_notebook; use crate::jupyter::schema::Cell; use crate::jupyter::Notebook; @@ -473,7 +469,6 @@ mod test { } #[test] - #[cfg(feature = "jupyter_notebook")] fn inclusions() { let path = Path::new("foo/bar/baz"); assert!(!is_jupyter_notebook(path)); diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index 0cdd5b765f5048..7b6bbb710a542e 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -66,9 +66,6 @@ wild = { version = "2" } assert_cmd = { version = "2.0.8" } ureq = { version = "2.6.2", features = [] } -[features] -jupyter_notebook = ["ruff/jupyter_notebook"] - [target.'cfg(target_os = "windows")'.dependencies] mimalloc = "0.1.34" diff --git a/crates/ruff_cli/src/commands/run.rs b/crates/ruff_cli/src/commands/run.rs index c299be0c09b07c..8dfbd63cd4636a 100644 --- a/crates/ruff_cli/src/commands/run.rs +++ b/crates/ruff_cli/src/commands/run.rs @@ -188,7 +188,6 @@ with the relevant file contents, the `pyproject.toml` settings, and the followin } #[cfg(test)] -#[cfg(feature = "jupyter_notebook")] mod test { use std::path::PathBuf; use std::str::FromStr;