Skip to content

Commit 171f959

Browse files
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

File tree

Makefile

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,26 @@ build-test: build ## Build and test package installation
386386
./dev-tools/package/test-install.sh
387387

388388
# CI/CD targets
389-
ci: dev-install lint security test-all test-report ## Run full CI pipeline
390-
@echo "CI pipeline completed successfully!"
389+
ci-check: dev-install ## Run comprehensive CI checks (matches GitHub Actions exactly)
390+
@echo "Running comprehensive CI checks that match GitHub Actions pipeline..."
391+
$(PYTHON) dev-tools/scripts/ci_check.py
391392

392-
ci-quick: dev-install lint test-quick ## Run quick CI pipeline
393+
ci-check-quick: dev-install ## Run quick CI checks (fast checks only)
394+
@echo "Running quick CI checks..."
395+
$(PYTHON) dev-tools/scripts/ci_check.py --quick
396+
397+
ci-check-fix: dev-install ## Run CI checks with automatic formatting fixes
398+
@echo "Running CI checks with automatic fixes..."
399+
$(PYTHON) dev-tools/scripts/ci_check.py --fix
400+
401+
ci-check-verbose: dev-install ## Run CI checks with verbose output
402+
@echo "Running CI checks with verbose output..."
403+
$(PYTHON) dev-tools/scripts/ci_check.py --verbose
404+
405+
ci: ci-check test-all ## Run full CI pipeline (comprehensive checks + all tests)
406+
@echo "Full CI pipeline completed successfully!"
407+
408+
ci-quick: ci-check-quick ## Run quick CI pipeline (fast checks only)
393409
@echo "Quick CI pipeline completed successfully!"
394410

395411
# Cleanup targets

0 commit comments

Comments
 (0)