flipped the black script

This commit is contained in:
Patrick Daly 2021-08-10 17:28:04 -07:00
parent b5fb695578
commit cb29c8a9dc

View File

@ -26,9 +26,9 @@ def mypy():
@click.command() @click.command()
@click.option("-c", required=False, is_flag=True) @click.option("-c", required=False, is_flag=True)
def black(c: str): def black(c: str = None):
"""if c is present run black in diff mode""" """if c is present run black in diff mode"""
if c: if c:
check_call(["black", "."])
else:
check_call(["black", "--diff", "--color", "."]) check_call(["black", "--diff", "--color", "."])
else:
check_call(["black", "."])