mirror of https://github.com/astral-sh/ruff
Include specified files, even if they lack a .py[i] extension (#238)
This commit is contained in:
parent
50ca0d7d0a
commit
f7fc702b2c
|
|
@ -107,8 +107,7 @@ pub fn iter_python_files<'a>(
|
||||||
})
|
})
|
||||||
.filter_map(|entry| entry.ok())
|
.filter_map(|entry| entry.ok())
|
||||||
.filter(|entry| {
|
.filter(|entry| {
|
||||||
let path = entry.path();
|
(entry.depth() == 0 && !entry.file_type().is_dir()) || is_included(entry.path())
|
||||||
is_included(path)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue