ITADN

Codebase refactor: Python code quality

#2504Opentanvi-mlcommons 创建于 2026-02-07
T
tanvi-mlcommonscommented
- Catch bare exceptions with specific exceptions - Replace print statements with specific logs levels by setting up module level logger - Fix unclosed file handles - Remove dead code triage TODO comments - Remove python 2 compatibility import - Avoid globals that are mutated at runtime - refactor into class based or dependency-injection patterns - Reduce nested helper sprawl in main() and move to module level unless it adds value
0 条评论