Commit 1b9122e
committed
Keep quality gate script visible to mypy
The CI mypy step scans the repository root and the new tests import the gate as scripts.check_test_evidence. Without a package marker, mypy sees scripts/check_test_evidence.py under two module names and exits before coverage can run.
Constraint: Existing CI runs make mypy-check before make coverage on every push.
Rejected: Excluding scripts from mypy | the quality gate code should remain type-checkable with the rest of the repository.
Confidence: high
Scope-risk: narrow
Directive: Keep scripts/__init__.py if tests import repository scripts as package modules.
Tested: make mypy-check
Tested: uv run pytest tests/unittests/test_quality_gate.py
Tested: make coverage
Change-Id: I5b894dbaa5ae23181833827ab277d68be380f39d
Not-tested: GitHub-hosted CI rerun is pending after push.
Signed-off-by: congxiao.wxx <congxiao.wxx@alibaba-inc.com>1 parent 9c70417 commit 1b9122e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments