From 2b7e145e56c7f1fbb4498d4ec6c6f9d237405db7 Mon Sep 17 00:00:00 2001 From: scarf Date: Tue, 28 Nov 2023 00:32:12 +0900 Subject: feat(fmt): support formatting code blocks in Jupyter notebooks (#21310) --- cli/args/flags.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index d7d51b374..555f2f312 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1579,7 +1579,9 @@ Ignore formatting a file by adding an ignore comment at the top of the file: .help("Set content type of the supplied file") // prefer using ts for formatting instead of js because ts works in more scenarios .default_value("ts") - .value_parser(["ts", "tsx", "js", "jsx", "md", "json", "jsonc"]), + .value_parser([ + "ts", "tsx", "js", "jsx", "md", "json", "jsonc", "ipynb", + ]), ) .arg( Arg::new("ignore") -- cgit v1.2.3