(ctx, check)
Run all CI validations for a repo.

    If `check` is specified, only the check will be validated, if check value is 'changed' will only apply to changed
    checks, an 'all' or empty `check` value will validate all README files.
Run all CI validations for a repo.
Run all CI validations for a repo .
def all(ctx, check):
    """Run all CI validations for a repo.

    If `check` is specified, only the check will be validated, if check value is 'changed' will only apply to changed
    checks, an 'all' or empty `check` value will validate all README files.
    """
    repo_choice = ctx.obj['repo_choice']
    echo_info(f'Running validations for {repo_choice} repo ...')

    for validation, repos in ALL_VALIDATIONS:
        echo_success('---')
        if repos[0] is not None and repo_choice not in repos:
            echo_info(f'Skipping {validation.name}')
            continue
        echo_info(f'Executing validation {validation.name}')

        if validation in REPO_VALIDATIONS:
            result = ctx.invoke(validation)
        else:
            result = ctx.invoke(validation, check=check)

        echo_success(result)
def all ( ctx , check ) : repo_choice = ctx . obj [ 'repo_choice' ] echo_info ( f'Running validations for {repo_choice} repo ...' ) for validation , repos in ALL_VALIDATIONS : echo_success ( '---' ) if repos [ 0 ] is not None and repo_choice not in repos : echo_info ( f'Skipping {validation.name}' ) continue echo_info ( f'Executing validation {validation.name}' ) if validation in REPO_VALIDATIONS : result = ctx . invoke ( validation ) else : result = ctx . invoke ( validation , check = check ) echo_success ( result )