Module epiclass.utils.preconditions
Check for specific conditions before running the main program, .e.g git in clean state, metadata passes all test flags, etc.
Uses GitPython package.
Functions
def check_epitatlas_uuid_premise(metadata: Metadata)-
Check that there is only one file per track type, for a given uuid.
def find_upwards(cwd: Path, filename: str)-
Python: search for a file in current directory and all it's parents https://stackoverflow.com/a/70859914/11472153
def git_repo_is_clean(verbose=True) ‑> bool-
Verifies that the git has no staged or tracked unstaged changes.
Return True if condition verified.
def main()-
Exit with error if a precondition is not met.
def parse_arguments() ‑> argparse.Namespace-
argument parser for command line