black logo black: functions

1 2 3 4 5
Notes

All code will be formatted by black. It won't just be data containers, functions too!

So if we start with this;

def open_up_this_here_file(filepath: os.PathLike, read_method: str = 'w', verbose: bool = True, debug: bool = False):
    """Does a whole bunch of things this one function does right here."""
    with open(filepath, read_method) as f:
        print(f.read())

We will end up with;

def open_up_this_here_file(
    filepath: os.PathLike,
    read_method: str = "w",
    verbose: bool = True,
    debug: bool = False,
):
    """Does a whole bunch of things this one function does right here."""
    with open(filepath, read_method) as f:
        print(f.read())