Commit 171f959
committed
fix: resolve mypy configuration issues and add comprehensive CI testing
Fixed mypy configuration and syntax issues:
1. mypy.ini configuration:
- Removed invalid per-module flags from [mypy-src.*] section
- Per-module sections now only contain valid flags (ignore_missing_imports)
- Cleaned up systematic duplication throughout configuration file
2. Syntax error fixes:
- Fixed unterminated string literal in templates.py
- Improved f-string formatting for better readability
3. Added comprehensive CI testing infrastructure:
- Created dev-tools/scripts/ci_check.py for local CI testing
- Script matches GitHub Actions workflow exactly
- Added Makefile targets: ci-check, ci-check-quick, ci-check-fix, ci-check-verbose
- Enables catching CI issues locally before pushing
The CI check script validates:
- mypy.ini configuration parsing and per-module flag compliance
- Python version consistency across configuration files
- Python syntax errors in common problem files
- Code formatting (Black, isort)
- Linting (flake8, mypy, pylint)
- Complexity analysis (radon)
- Security checks (bandit, safety)
All configuration and syntax issues resolved. Remaining mypy errors are type annotation issues, not configuration problems.1 parent c06fca3 commit 171f959
5 files changed
Lines changed: 1350 additions & 400 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
390 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
391 | 392 | | |
392 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
393 | 409 | | |
394 | 410 | | |
395 | 411 | | |
| |||
0 commit comments