chore: lint & format team modes
What does this MR do and why?
This MR applies Ruff linting and formatting to team modules, user profile modules, and related test/verification scripts to improve code consistency, readability, and maintainability without introducing any functional changes.
Updated files include:
modes/team_analytics.pymodes/team_config.pymodes/team_dashboard.pymodes/team_styles.pymodes/team_views.pyuser_profile/profile_ui.pyuser_profile/profile_utils.pytest_changes.pytests/test_batch_logic.pyverify_batch_users.pyverify_contribution_fix.py
Changes performed:
- Removed unused imports and redundant code
- Standardized import ordering and formatting
- Applied consistent Ruff formatting across modules
- Ensured lint checks pass successfully
Complexity rule C901 was intentionally ignored, as refactoring logic is outside the scope of this lint/format MR.
References
N/A – Internal code quality and consistency improvement.
Screenshots or screen recordings
Not applicable. This MR does not introduce UI or functional changes.
| Before | After |
|---|---|
| Inconsistent formatting | Standardized formatting via Ruff |
| Unused imports present | Unused imports removed |
| Minor lint warnings | All lint checks passing |
How to set up and validate locally
- Checkout this branch:
git checkout chore/lint-format-team-modes
- Run lint checks:
ruff check modes/*.py user_profile/*.py tests/*.py *.py
- Run formatting check:
ruff format --check modes/*.py user_profile/*.py tests/*.py *.py
- Start the app:
streamlit run app.py
- Verify application behavior remains unchanged.
Edited by Banuri Koushik Reddy