src/nitpick/plugins/pre_commit.py
def format_hook(expected_dict) -> str:
        """Format the hook so it's easy to copy and paste it to the .yaml file: ID goes first, indent with spaces."""
        lines = YAMLFormat(data=expected_dict).reformatted
        output: List[str] = []
        for line in lines.split("\n"):
            if line.startswith("id:"):
                output.insert(0, f"  - {line}")
            else:
                output.append(f"    {line}")
        return "\n".join(output)
Format the hook so it's easy to copy and paste it to the .yaml file: ID goes first, indent with spaces.
Format the hook so it's easy to copy and paste it to the .yaml file: ID goes first, indent with spaces.
Format the hook so it ' s easy to copy and paste it to the . yaml file : ID goes first indent with spaces .
def format_hook(expected_dict) -> str:
        lines = YAMLFormat(data=expected_dict).reformatted
        output: List[str] = []
        for line in lines.split("\n"):
            if line.startswith("id:"):
                output.insert(0, f"  - {line}")
            else:
                output.append(f"    {line}")
        return "\n".join(output)
def format_hook ( expected_dict ) -> str : lines = YAMLFormat ( data = expected_dict ) . reformatted output : List [ str ] = [ ] for line in lines . split ( "\n" ) : if line . startswith ( "id:" ) : output . insert ( 0 , f"  - {line}" ) else : output . append ( f"    {line}" ) return "\n" . join ( output )
Format the hook so it's easy to copy and paste it to the .yaml file: ID goes first, indent with spaces.
Format the hook so it ' s easy to copy and paste it to the . yaml file : ID goes first indent with spaces .
"""Format the hook so it's easy to copy and paste it to the .yaml file: ID goes first, indent with spaces."""
expected_dict