Compare commits
1 Commits
step35/99-
...
step35/157
| Author | SHA1 | Date | |
|---|---|---|---|
| 501ca838c7 |
@@ -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
|
||||
|
||||
5
Makefile
5
Makefile
@@ -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
20
mypy.ini
Normal 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
|
||||
@@ -1 +1,2 @@
|
||||
pytest>=8,<9
|
||||
mypy>=1.0
|
||||
|
||||
Reference in New Issue
Block a user