コード例 #1
0
ファイル: disable.py プロジェクト: imfht/flaskapps
def check(context: Context, tool: str, check: str) -> None:
    """
    Turn OFF a check.

    Visit bento.dev/checks to learn about Bento's specialty checks.
    """
    def add(ignores: Set[str]) -> None:
        ignores.add(check)

    update_ignores(context, tool, add)
    echo_success(f"'{check}' disabled for '{tool}'")
コード例 #2
0
def check(context: Context, tool: str, check: str) -> None:
    """
        Turn OFF a check.

        Please see `bento disable --help` for more information.
    """
    def add(ignores: Set[str]) -> None:
        ignores.add(check)

    update_ignores(context, tool, add)
    echo_success(f"'{check}' disabled for '{tool}'")
コード例 #3
0
def check(context: Context, tool: str, check: str) -> None:
    """
    Turn ON a check.

    Visit checks.bento.dev to learn about Bento's specialty checks.
    """
    def remove(ignores: Set[str]) -> None:
        if check in ignores:
            ignores.remove(check)

    update_ignores(context, tool, remove)
    echo_success(f"'{check}' enabled for '{tool}'")
コード例 #4
0
def check(context: Context, tool: str, check: str) -> None:
    """
        Turn ON a check.

        See `bento enable --help` for more details.
    """
    def remove(ignores: Set[str]) -> None:
        if check in ignores:
            ignores.remove(check)

    update_ignores(context, tool, remove)
    echo_success(f"'{check}' enabled for '{tool}'")