diff --git a/pre_commit_hooks/shellcheck_run_steps.py b/pre_commit_hooks/shellcheck_run_steps.py index 5c66bce..a466f57 100644 --- a/pre_commit_hooks/shellcheck_run_steps.py +++ b/pre_commit_hooks/shellcheck_run_steps.py @@ -5,35 +5,15 @@ import os import subprocess import tempfile -from collections.abc import Generator from collections.abc import Mapping from collections.abc import Sequence from typing import Any -from typing import NamedTuple import ruamel.yaml yaml = ruamel.yaml.YAML(typ="safe") -def _exhaust(gen: Generator[str]) -> None: - for _ in gen: - pass - - -def _parse_unsafe(*args: Any, **kwargs: Any) -> None: - _exhaust(yaml.parse(*args, **kwargs)) - - -def _load_all(*args: Any, **kwargs: Any) -> None: - _exhaust(yaml.load_all(*args, **kwargs)) - - -class Key(NamedTuple): - multi: bool - unsafe: bool - - def do_shellcheck( melange_cfg: Mapping[str, Any], shellcheck: list[str], diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index e1514d1..0000000 --- a/ruff.toml +++ /dev/null @@ -1 +0,0 @@ -line-length = 80