flipped the black script
This commit is contained in:
parent
b5fb695578
commit
cb29c8a9dc
@ -26,9 +26,9 @@ def mypy():
|
||||
|
||||
@click.command()
|
||||
@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:
|
||||
check_call(["black", "."])
|
||||
else:
|
||||
check_call(["black", "--diff", "--color", "."])
|
||||
else:
|
||||
check_call(["black", "."])
|
||||
|
Loading…
x
Reference in New Issue
Block a user