mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Add basic jupyter notebook support (#3440)
* Add basic jupyter notebook support behind a feature flag * Address review comments * Rename in separate commit to make both git and clippy happy * cfg(feature = "jupyter_notebook") another test * Address more review comments * Address more review comments * and clippy and windows * More review comment
This commit is contained in:
parent
a45753f462
commit
81d0884974
19 changed files with 1035 additions and 68 deletions
|
@ -1,7 +1,7 @@
|
|||
use anyhow::Result;
|
||||
use clap::CommandFactory;
|
||||
use notify::{recommended_watcher, RecursiveMode, Watcher};
|
||||
use std::io;
|
||||
use std::io::{self, BufWriter};
|
||||
use std::path::PathBuf;
|
||||
use std::process::ExitCode;
|
||||
use std::sync::mpsc::channel;
|
||||
|
@ -262,7 +262,8 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result<ExitStatus> {
|
|||
if cli.statistics {
|
||||
printer.write_statistics(&diagnostics)?;
|
||||
} else {
|
||||
printer.write_once(&diagnostics)?;
|
||||
let mut stdout = BufWriter::new(io::stdout().lock());
|
||||
printer.write_once(&diagnostics, &mut stdout)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue