Compare commits

...

1 Commits

Author SHA1 Message Date
501ca838c7 feat(ci): integrate mypy type checker (issue #157)
Some checks failed
Test / pytest (pull_request) Failing after 21s
- Add mypy>=1.0 to requirements.txt
- Create mypy.ini config (Python 3.11, ignore missing imports, warn_unused_ignores)
- Add `make typecheck` target (runs mypy on scripts/ and tests/)
- Update CI workflow to run typecheck before pytest
- Type checker detected per project (Python → mypy)
- Reports type errors via mypy output

Closes #157
2026-04-26 11:03:18 -04:00
4 changed files with 28 additions and 1 deletions

View File

@@ -17,6 +17,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Type check (mypy)
run: |
make typecheck
- name: Run test suite
run: |
make test

View File

@@ -1,4 +1,7 @@
.PHONY: test
.PHONY: test typecheck
test:
python3 -m pytest tests/test_ci_config.py scripts/test_*.py -v
typecheck:
mypy scripts/ tests/ --config-file=mypy.ini --show-error-codes

20
mypy.ini Normal file
View File

@@ -0,0 +1,20 @@
[mypy]
# Compounding Intelligence Type Checker Configuration (Issue #157)
python_version = 3.11
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_return_any = True
show_error_codes = True
pretty = True
# Per-module strictness
[mypy-tests.*]
disallow_untyped_defs = False
[mypy-scripts.test_*]
disallow_untyped_defs = False
# Optional: uncomment to enforce stricter checking gradually
# disallow_untyped_defs = True
# check_untyped_defs = True

View File

@@ -1 +1,2 @@
pytest>=8,<9
mypy>=1.0