tasks/test.py
def install_shellcheck(ctx, version="0.8.0", destination="/usr/local/bin"):
    """
    Installs the requested version of shellcheck in the specified folder (by default /usr/local/bin).
    Required to run the shellcheck pre-commit hook.
    """

    if sys.platform == 'win32':
        print("shellcheck is not supported on Windows")
        raise Exit(code=1)
    if sys.platform.startswith('darwin'):
        platform = "darwin"
    if sys.platform.startswith('linux'):
        platform = "linux"

    ctx.run(
        f"wget -qO- \"https://github.com/koalaman/shellcheck/releases/download/v{version}/shellcheck-v{version}.{platform}.x86_64.tar.xz\" | tar -xJv -C /tmp"
    )
    ctx.run(f"cp \"/tmp/shellcheck-v{version}/shellcheck\" {destination}")
    ctx.run(f"rm -rf \"/tmp/shellcheck-v{version}\"")

    Installs the requested version of shellcheck in the specified folder (by default /usr/local/bin).
    Required to run the shellcheck pre-commit hook.
    
Installs the requested version of shellcheck in the specified folder (by default /usr/local/bin).
Required to run the shellcheck pre-commit hook.
Installs the requested version of shellcheck in the specified folder ( by default / usr / local / bin ) . Required to run the shellcheck pre - commit hook .
def install_shellcheck(ctx, version="0.8.0", destination="/usr/local/bin"):
    if sys.platform == 'win32':
        print("shellcheck is not supported on Windows")
        raise Exit(code=1)
    if sys.platform.startswith('darwin'):
        platform = "darwin"
    if sys.platform.startswith('linux'):
        platform = "linux"
    ctx.run(
        f"wget -qO- \"https://github.com/koalaman/shellcheck/releases/download/v{version}/shellcheck-v{version}.{platform}.x86_64.tar.xz\" | tar -xJv -C /tmp"
    )
    ctx.run(f"cp \"/tmp/shellcheck-v{version}/shellcheck\" {destination}")
    ctx.run(f"rm -rf \"/tmp/shellcheck-v{version}\"")
def install_shellcheck ( ctx , version = "0.8.0" , destination = "/usr/local/bin" ) : if sys . platform == 'win32' : print ( "shellcheck is not supported on Windows" ) raise Exit ( code = 1 ) if sys . platform . startswith ( 'darwin' ) : platform = "darwin" if sys . platform . startswith ( 'linux' ) : platform = "linux" ctx . run ( f"wget -qO- \"https://github.com/koalaman/shellcheck/releases/download/v{version}/shellcheck-v{version}.{platform}.x86_64.tar.xz\" | tar -xJv -C /tmp" ) ctx . run ( f"cp \"/tmp/shellcheck-v{version}/shellcheck\" {destination}" ) ctx . run ( f"rm -rf \"/tmp/shellcheck-v{version}\"" )
Installs the requested version of shellcheck in the specified folder (by default /usr/local/bin).
Installs the requested version of shellcheck in the specified folder ( by default / usr / local / bin ) .
"""
    Installs the requested version of shellcheck in the specified folder (by default /usr/local/bin).
    Required to run the shellcheck pre-commit hook.
    """
ctx
version
destination