<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _read_local_kwalitee_configuration(directory="."):
 """Check if the repo has a ``.kwalitee.yaml`` file."""

    filepath = os.path.abspath(os.path.join(directory, '.kwalitee.yml'))
    data = {}
    if os.path.exists(filepath):
        with open(filepath, 'r') as file_read:
            data = yaml.load(file_read.read())
    return data