19 lines
472 B
Python
19 lines
472 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from deptry.rust import find_python_files
|
|
|
|
|
|
def get_all_python_files_in(
|
|
directories: tuple[Path, ...],
|
|
exclude: tuple[str, ...],
|
|
extend_exclude: tuple[str, ...],
|
|
using_default_exclude: bool,
|
|
ignore_notebooks: bool = False,
|
|
) -> list[Path]:
|
|
return [
|
|
Path(f)
|
|
for f in find_python_files(directories, exclude, extend_exclude, using_default_exclude, ignore_notebooks)
|
|
]
|