checkpoint: massive refactor
This commit is contained in:
21
reproduce_missing_hints.py
Normal file
21
reproduce_missing_hints.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
def test_type_hints():
|
||||
files = ["project_manager.py", "session_logger.py"]
|
||||
all_missing = []
|
||||
for f in files:
|
||||
print(f"Scanning {f}...")
|
||||
result = subprocess.run(["uv", "run", "python", "scripts/type_hint_scanner.py", f], capture_output=True, text=True)
|
||||
if result.stdout.strip():
|
||||
print(f"Missing hints in {f}:\n{result.stdout}")
|
||||
all_missing.append(f)
|
||||
if all_missing:
|
||||
print(f"FAILURE: Missing type hints in: {', '.join(all_missing)}")
|
||||
sys.exit(1)
|
||||
else:
|
||||
print("SUCCESS: All functions have type hints.")
|
||||
sys.exit(0)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_type_hints()
|
||||
Reference in New Issue
Block a user