Skip to content

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.py
  • modes/team_config.py
  • modes/team_dashboard.py
  • modes/team_styles.py
  • modes/team_views.py
  • user_profile/profile_ui.py
  • user_profile/profile_utils.py
  • test_changes.py
  • tests/test_batch_logic.py
  • verify_batch_users.py
  • verify_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

  1. Checkout this branch:
git checkout chore/lint-format-team-modes
  1. Run lint checks:
ruff check modes/*.py user_profile/*.py tests/*.py *.py
  1. Run formatting check:
ruff format --check modes/*.py user_profile/*.py tests/*.py *.py
  1. Start the app:
streamlit run app.py
  1. Verify application behavior remains unchanged.
Edited by Banuri Koushik Reddy

Merge request reports

Loading