Skip to content

feat: Add i18n support, CI updates, pre-commit hooks, and improve test coverage

Kaveri Mamidi requested to merge kteam into feature-final

##Title

feat: add i18n support, CI updates, pre-commit hooks, and improve test coverage

##What does this MR do?

This merge request adds internationalization (i18n) support using Babel, enhances CI/CD pipeline, introduces pre-commit hooks for code quality, and improves overall test coverage.

Motivation / Use Case

##This feature improves the project by:

Enabling multi-language support (English & Telugu) Automating code quality checks and testing Making the project more scalable and production-ready Implementation Notes Added Babel dependencies and i18n configuration in pyproject.toml Updated .gitlab-ci.yml to include i18n and pre-commit stages Created .pre-commit-config.yaml for linting (ruff), testing (pytest), and translation compilation Added babel.cfg for extraction rules Initialized and compiled locale files (en, te) Added async tests for client.py and improved test coverage

No breaking changes introduced.

##How to Test

Pull this branch:

git checkout kteam git pull origin kteam

Install dependencies:

uv sync

Run application:

streamlit run app.py

##Run tests:

pytest

Verify translations:

pybabel compile -d locale Checklist Feature is documented Code is clean and follows project style No breaking changes Tests added/updated Feature works locally

##Related Issues #58 (closed)

Merge request reports

Loading