Skip to content

Commit bcd70c5

Browse files
committed
Exclude Markdown files from format-dev runs (#27052)
Summary -- This should fix the CI failures I was seeing in #27035: https://github.com/astral-sh/ruff/actions/runs/29854835643/job/88716871906?pr=27035 I guess this didn't appear in #27018 because no formatter files were modified. Test Plan -- CI on this PR, success: https://github.com/astral-sh/ruff/actions/runs/29861350490/job/88738651835?pr=27052
1 parent 87e51e2 commit bcd70c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/ruff_dev/src/format_dev.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fn parse_cli(dirs: &[PathBuf]) -> anyhow::Result<(FormatArguments, ConfigArgumen
4040
let args_matches = FormatCommand::command()
4141
.no_binary_name(true)
4242
.get_matches_from(dirs);
43-
let arguments: FormatCommand = FormatCommand::from_arg_matches(&args_matches)?;
43+
let mut arguments: FormatCommand = FormatCommand::from_arg_matches(&args_matches)?;
44+
arguments.extend_exclude = Some(vec![FilePattern::Builtin("*.md")]);
4445
let (cli, config_arguments) = arguments.partition(GlobalConfigArgs::default())?;
4546
Ok((cli, config_arguments))
4647
}

0 commit comments

Comments
 (0)