teachbooks.external_content.licenses module

Find and validate external content license files.

teachbooks.external_content.licenses.find_license(repo_toplevel: str | Path) str | None

Try to detect which license is being used by a repo.

teachbooks.external_content.licenses.validate_licenses(cloned_repos: list[Path], git_path: Path, error: bool)

Validate if the cloned repositories all have permisive licenses.