(dirs: &[PathBuf])
| 37 | use ruff_workspace::resolver::{ResolvedFile, Resolver, RootSettings, project_files_in_path}; |
| 38 | |
| 39 | fn parse_cli(dirs: &[PathBuf]) -> anyhow::Result<(FormatArguments, ConfigArguments)> { |
| 40 | let args_matches = FormatCommand::command() |
| 41 | .no_binary_name(true) |
| 42 | .get_matches_from(dirs); |
| 43 | let mut arguments: FormatCommand = FormatCommand::from_arg_matches(&args_matches)?; |
| 44 | arguments.extend_exclude = Some(vec![FilePattern::Builtin("*.md")]); |
| 45 | let (cli, config_arguments) = arguments.partition(GlobalConfigArgs::default())?; |
| 46 | Ok((cli, config_arguments)) |
| 47 | } |
| 48 | |
| 49 | /// Find the [`RootSettings`] to use for formatting. |
| 50 | fn root_settings_for_formatting( |
no test coverage detected