diff --git a/check_progress.py b/check_progress.py index 50b8357..21eaf1d 100644 --- a/check_progress.py +++ b/check_progress.py @@ -79,9 +79,9 @@ def check_progress(): if has_a: stats["analysis"] += 1 if has_v: stats["verified"] += 1 - t_status = "✓" if has_t else " " - a_status = "✓" if has_a else " " - v_status = "✓" if has_v else " " + t_status = "[OK]" if has_t else "[..]" + a_status = "[OK]" if has_a else "[..]" + v_status = "[OK]" if has_v else "[..]" # Try to get title title = "" diff --git a/verify_encoding.py b/verify_encoding.py index ff0d983..08cc787 100644 --- a/verify_encoding.py +++ b/verify_encoding.py @@ -22,18 +22,18 @@ def verify_utf8(path: Path) -> tuple[int, int]: return (0, len(content)) -def main(): +def main(path: str = '.') -> int: import argparse parser = argparse.ArgumentParser(description="Verify UTF-8 encoding in JSON files") parser.add_argument('path', nargs='?', default='.', help='Root directory to scan') args = parser.parse_args() - root = Path('.').resolve() + root = Path(args.path).resolve() print(f"Scanning {root} for JSON files...") - stats = {"files": 0, "errors": 0, "bytes": 0} + stats = {"files_checked": 0, "errors": 0, "total_bytes": 0} - for path in Path('.').rglob("*.json"): + for path in root.rglob("*.json"): if any(part.startswith('.') for part in path.parts): continue if path.name.startswith('.'):