mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-24 13:33:50 +00:00
Update Black tests (#5438)
This commit is contained in:
parent
f7969cf23c
commit
ae25638b0b
166 changed files with 11066 additions and 237 deletions
|
@ -4,7 +4,7 @@
|
|||
//! checking entire repositories.
|
||||
#![allow(clippy::print_stdout)]
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::{bail, Context};
|
||||
use clap::Parser;
|
||||
use log::debug;
|
||||
use ruff::resolver::python_files_in_path;
|
||||
|
@ -107,7 +107,10 @@ pub(crate) fn check_repo(args: &Args) -> anyhow::Result<bool> {
|
|||
])
|
||||
.unwrap();
|
||||
let (paths, _resolver) = python_files_in_path(&cli.files, &pyproject_config, &overrides)?;
|
||||
assert!(!paths.is_empty(), "no python files in {:?}", cli.files);
|
||||
|
||||
if paths.is_empty() {
|
||||
bail!("no python files in {:?}", cli.files)
|
||||
}
|
||||
|
||||
let mut formatted_counter = 0;
|
||||
let errors = paths
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue