Enable EM in flake8 and ruff

This commit is contained in:
Alexander Hess 2026-11-30 22:59:41 +01:00
commit ae2dc8db64
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
2 changed files with 201 additions and 99 deletions

View file

@ -27,10 +27,12 @@ pytest_plugins = [
# The TESTING environment variable is set
# in pyproject.toml in pytest's config section.
if not os.getenv("TESTING"):
raise RuntimeError("Tests must be executed with TESTING set in the environment")
msg = "Tests must be executed with TESTING set in the environment"
raise RuntimeError(msg)
if not pkg_config.TESTING:
raise RuntimeError("The testing configuration was not loaded")
msg = "The testing configuration was not loaded"
raise RuntimeError(msg)
@pytest.fixture(scope="session", params=["all_at_once", "sequentially"])

View file

@ -141,7 +141,8 @@ def make_replay_order(make_order, simulation):
"""
if scheduled:
if order and order.ad_hoc is False:
raise RuntimeError("`order` must be scheduled")
msg = "`order` must be scheduled"
raise RuntimeError(msg)
if order is None:
order = make_order(scheduled=True)