Skip to main content

find_scripts

Function find_scripts 

Source
pub fn find_scripts(
    workspace_root: &Path,
    cache_root: &Path,
) -> impl Iterator<Item = Result<PathBuf, ScriptDiscoveryError>>
Expand description

Find PEP 723 scripts under a workspace root.

Respects ignore files and excludes repository internals, virtual environments, and the uv cache from traversal. Script-specific errors are returned individually so callers can decide whether invalid candidates should fail discovery.