diff --git a/bin/rule_hook/heavy_command.py b/bin/rule_hook/heavy_command.py index a8b85175..1c816465 100644 --- a/bin/rule_hook/heavy_command.py +++ b/bin/rule_hook/heavy_command.py @@ -1,5 +1,5 @@ """Whether a simple command is a heavy one, for the `run-heavy` rule: a docker build, or a run of a mutation tool.""" -from rule_hook.docker_command import LAUNCHERS, docker_arguments, docker_subcommand, tool_name +from rule_hook.docker_command import docker_arguments, docker_subcommand, LAUNCHERS, tool_name # Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; where the set is empty, every call is one. MUTATORS = {"cargo": {"mutants"}, "infection": set(), "mutmut": {"run"}, "stryker": {"run"}} diff --git a/bin/rule_hook/rules.py b/bin/rule_hook/rules.py index cd039cd5..7ecfc6ce 100644 --- a/bin/rule_hook/rules.py +++ b/bin/rule_hook/rules.py @@ -5,10 +5,10 @@ import typing from round_titles import CAP, lacks_counts, past_cap from git_command import commits -from rule_hook.docker_command import unlimited_container from rule_hook.heavy_command import heavy from review_folder import REPORTS from shell_command import Simple +from rule_hook.docker_command import unlimited_container RuleName = typing.Literal["action-pin", "commit-one-line", "docker-run-memory", "ignorefile-sorted", "image-pin", "no-ai-attribution", "reviewer-report", "reviewer-rung", "round-cap", "round-title-counts", "run-heavy", "todo-rank-check"]