Module trase.tools.data_release_package.validate.validators.structure

Validates the top-level file/folder layout of a data release package.

Functions

def validate_no_unexpected_files(package_dir: pathlib.Path) ‑> Iterator[str]

Every file in documentation/ and metadata/ must be one the specification names. Stale files left behind by a rename are a common cause of a package that looks right but snapshots the wrong thing.

def validate_no_unexpected_top_level_entries(package_dir: pathlib.Path) ‑> Iterator[str]
def validate_required_files_exist(package_dir: pathlib.Path) ‑> Iterator[str]