tasks/release.py
def check_uncommitted_changes(ctx):
    """
    Checks if there are uncommitted changes in the local git repository.
    """
    modified_files = ctx.run("git --no-pager diff --name-only HEAD | wc -l", hide=True).stdout.strip()

    # Return True if at least one file has uncommitted changes.
    return modified_files != "0"

    Checks if there are uncommitted changes in the local git repository.
    
Checks if there are uncommitted changes in the local git repository.
Checks if there are uncommitted changes in the local git repository .
def check_uncommitted_changes(ctx):
    modified_files = ctx.run("git --no-pager diff --name-only HEAD | wc -l", hide=True).stdout.strip()
    return modified_files != "0"
def check_uncommitted_changes ( ctx ) : modified_files = ctx . run ( "git --no-pager diff --name-only HEAD | wc -l" , hide = True ) . stdout . strip ( ) return modified_files != "0"
Checks if there are uncommitted changes in the local git repository.
Checks if there are uncommitted changes in the local git repository .
"""
    Checks if there are uncommitted changes in the local git repository.
    """ # Return True if at least one file has uncommitted changes.
ctx