Commit 0a7d965
authored
ci(mypy): SR-190 — enforce type-checking (informational phase)
* ci(mypy): SR-190 — add informational mypy step after ruff (#189)
Re-applied cleanly on top of merged main (post-#173 path doctrine).
- Runs after 'ruff check', before 'pytest'.
- Matrix-pinned to Python 3.13 (Issue #189 acceptance criterion).
- Non-blocking via '|| true' + '--no-error-summary' -> Phase 1.
- Scope: survey-cli/survey/ (production code; tests out-of-scope).
- Full doctrine as inline comment in workflow (docs-in-code).
Note on operator: GHA runs each 'run:' block with 'bash -e -o pipefail'.
Under set -e, 'cmd1; cmd2' aborts after cmd1 if it fails. MUST use
'|| true' here. This was the operator-fix lesson from the first
revision of this PR (commit af826de on the pre-rebase branch).
Ref #189
* docs(agents): SR-190 — append mypy CI doctrine section (#189)
Appended at the tail of survey-cli/AGENTS.md (post-#173 path
doctrine section, post 'Out-of-scope' subsection):
- Phase 1 contract (informational, non-blocking, scope, config).
- Operator-gotcha note (|| true vs ; true under bash -e).
- Promotion trigger for Phase 2 (count < 50 -> blocking).
- Audit trail with date + baseline measurement.
- Forbidden list (no --ignore-missing-imports, no per-module
overrides without debt issue, no tests/ scope).
Ref #1891 parent ecf45a2 commit 0a7d965
2 files changed
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
76 | 101 | | |
77 | 102 | | |
78 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
0 commit comments