DMTF / Redfish-Mockup-Server

A simple Python 3.4 program that can be copied into a folder at the top of any Redfish mockup and can serve Redfish requests on the specified IP/port.
Other
72 stars 37 forks source link

Inconsistent indentation in redfishMockupServer.py #107

Closed MoshiBin closed 3 months ago

MoshiBin commented 3 months ago

redfishMockupServer.py has inconsistent indentation. Sometimes indents are 4 spaces, while other times they're 8 spaces.

Example:

def dict_merge(dct, merge_dct):
        """
        https://gist.github.com/angstwad/bf22d1822c38a92ec0a9 modified

Next function immediately after that:

def clean_path(path, isShort):
    """clean_path
glimchb commented 3 months ago

@mraineri can you please run

pip install black
black redfishMockupServer.py

and propose PR? I could do it myself, but don't want to override proper git blame on the entire code ?