Group bin's root modules into packages named by purpose, and make rank_todo.py a launcher of release_plan/ranking.py
This commit is contained in:
@@ -5,7 +5,7 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from review_passes import PASS_AGENTS, PASSES
|
||||
from review_rules.review_passes import PASS_AGENTS, PASSES
|
||||
from repo_checks import ROOT
|
||||
from rule_hook.reviewer_rung import SEAT, SECURITY_OPENER
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import unittest
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from settings_filter import cleaned
|
||||
from git_repo import git
|
||||
from git_cli.git_repo import git
|
||||
from repo_checks import ROOT
|
||||
|
||||
INSTALL = "git config filter.settings.clean bin/settings_filter.py"
|
||||
|
||||
@@ -30,5 +30,5 @@ class Types(unittest.TestCase):
|
||||
self.assertEqual(ran.returncode, 0, ran.stdout + ran.stderr)
|
||||
|
||||
def test_mypy_checks_run_heavy_and_each_root_module(self):
|
||||
self.assertLessEqual({("-p", "run_heavy"), ("-p", "machine_load"), ("-m", "release_standing"), ("-m", "docker_command")}, set(zip(tools()[::2], tools()[1::2])))
|
||||
self.assertLessEqual({("-p", "run_heavy"), ("-p", "machine_load"), ("-p", "release_plan"), ("-m", "failure")}, set(zip(tools()[::2], tools()[1::2])))
|
||||
self.assertNotIn("repo_checks", tools())
|
||||
|
||||
Reference in New Issue
Block a user