Apply Safe Ruff Lint Cleanup and Project-Wide Formatting
This merge request performs a controlled linting and formatting cleanup across the codebase using Ruff, with no functional changes.
Changes made
- Updated Ruff configuration in pyproject.toml:
- Set line-length = 120
- Enabled lint rule selection: E, F, I
- Ignored complexity warnings: C901
- Excluded test files from lint/format scope (tests/*, test_*.py)
- Resolved safe lint issues:
- Removed unused variables (F841)
- Cleaned up/import-ordered imports
- Fixed naming/style issues (e.g., local variable casing)
- Addressed long-line violations through formatting-safe line wrapping
- Applied consistent formatting using ruff format .
Constraints respected
- No application logic changes
- No large function refactors
- No Streamlit UI behavior changes
- No scoring/backend behavior changes
- No test file modifications
Validation
- ruff check . --fix passes
- ruff format . applied successfully
- ruff check . passes after formatting