Skip to content

refactor: remove unused imports and variables#38

Open
rachana192837 wants to merge 1 commit intoruxailab:mainfrom
rachana192837:refactor/clean-up-dead-code
Open

refactor: remove unused imports and variables#38
rachana192837 wants to merge 1 commit intoruxailab:mainfrom
rachana192837:refactor/clean-up-dead-code

Conversation

@rachana192837
Copy link
Copy Markdown
Contributor

Description

This PR cleans up the codebase by removing unused code (imports and variables) discovered by running the flake8 linter.

Changes Made

  • app/__init__.py: Removed the unused logger import.
  • app/models/whisper_model.py: Removed the unused import torch.
  • app/routes/audio_transcript_sentiment_routes.py: Removed the unused e variable in the exception block.
  • app/services/audio_transcription_sentiment_pipeline.py: Removed the unused timestamp = chunk['timestamp'] variable assignment, which was declared but never utilized.

Motivation

Removing dead code improves maintainability, prevents developer confusion, and ensures the codebase adheres more closely to strict Python linting standards (flake8), which is great for long-term project health.

@rachana192837
Copy link
Copy Markdown
Contributor Author

@BasmaElhoseny01 can u review this PR ? would be really helpful . Thanks

Copy link
Copy Markdown
Collaborator

@BasmaElhoseny01 BasmaElhoseny01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM will test & we can merge

@BasmaElhoseny01 BasmaElhoseny01 self-assigned this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants