What problem does it solve?
The ratios Skill helps developers ensure code quality and composition ratios are in check by analyzing and measuring specific attributes such as lines of code, comments, imports, and public symbols in code files.
Core Features & Use Cases
- Ratio Measurement: Automatically measures loc_comments, imports_exports, and calls_definitions in code files.
- Drift Detection: Identifies any discrepancies between declared and actual ratios.
- Integration with CI/CD: Can be integrated into the CI/CD pipeline to enforce codebase standards.
- Use Case: Before merging a feature branch, ensure all ratios within your Python modules meet the required benchmarks for code density and structure.
Quick Start
To compute the ratios for all Python files in the current directory, use: 'ratios check --root .'