mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Include hidden ecosystem_ci option to show fixes without feature (#4528)
This commit is contained in:
parent
b1d01b1950
commit
3644695bf2
6 changed files with 8 additions and 19 deletions
|
@ -155,8 +155,13 @@ fn format(files: &[PathBuf]) -> Result<ExitStatus> {
|
|||
}
|
||||
|
||||
fn check(args: CheckArgs, log_level: LogLevel) -> Result<ExitStatus> {
|
||||
#[cfg(feature = "ecosystem_ci")]
|
||||
let ecosystem_ci = args.ecosystem_ci;
|
||||
if ecosystem_ci {
|
||||
warn_user_once!(
|
||||
"The formatting of fixes emitted by this option is a work-in-progress, subject to \
|
||||
change at any time, and intended for use with the ecosystem ci scripts only."
|
||||
);
|
||||
}
|
||||
let (cli, overrides) = args.partition();
|
||||
|
||||
// Construct the "default" settings. These are used when no `pyproject.toml`
|
||||
|
@ -243,14 +248,7 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result<ExitStatus> {
|
|||
return Ok(ExitStatus::Success);
|
||||
}
|
||||
|
||||
let printer = Printer::new(
|
||||
format,
|
||||
log_level,
|
||||
autofix,
|
||||
printer_flags,
|
||||
#[cfg(feature = "ecosystem_ci")]
|
||||
ecosystem_ci,
|
||||
);
|
||||
let printer = Printer::new(format, log_level, autofix, printer_flags, ecosystem_ci);
|
||||
|
||||
if cli.watch {
|
||||
if format != SerializationFormat::Text {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue