tasks.py
def black(c, check=False, diff=False):
    """Run black formatter in check or diff mode"""
    CF, DF = "", ""
    if check:
        CF = "--check"
    if diff:
        DF = "--diff"

    c.run(f"{VENV}/bin/black {CF} {DF} {PKG_PATH} tasks.py setup.py")
Run black formatter in check or diff mode
Run black formatter in check or diff mode
Run black formatter in check or diff mode
def black(c, check=False, diff=False):
    CF, DF = "", ""
    if check:
        CF = "--check"
    if diff:
        DF = "--diff"
    c.run(f"{VENV}/bin/black {CF} {DF} {PKG_PATH} tasks.py setup.py")
def black ( c , check = False , diff = False ) : CF , DF = "" , "" if check : CF = "--check" if diff : DF = "--diff" c . run ( f"{VENV}/bin/black {CF} {DF} {PKG_PATH} tasks.py setup.py" )
Run black formatter in check or diff mode
Run black formatter in check or diff mode
"""Run black formatter in check or diff mode"""
c
check
diff