#!/usr/bin/env python3 """Run the tests/code_coverage_tests scripts that test-linting.yml's code-quality job runs. The list is read from the workflow itself, so a script added to that job runs under `make lint` (and so `make check`) as soon as it lands, and a local pass means those CI steps pass too. """ import os import re import subprocess import sys from collections.abc import Mapping, Sequence from concurrent.futures import ThreadPoolExecutor from dataclasses import dataclass from functools import partial from pathlib import Path from typing import Final import yaml from pydantic import BaseModel, ConfigDict, Field REPO_ROOT: Final = Path(__file__).resolve().parent.parent WORKFLOW: Final = REPO_ROOT / ".github" / "workflows" / "test-linting.yml" JOB: Final = "code-quality" SCRIPT_STEP: Final = re.compile(r"uv run --no-sync python (?P