Skip to content

feat:Add Ruff linting and formatting to GitLab CI pipeline

Praveena Veeranki requested to merge final into feature-final

What this MR does Updates the GitLab CI/CD pipeline configuration to include the target branch in trigger rules and improves how dependencies and tools are executed within the continuous integration environment.

Changes .gitlab-ci.yml — Added - if: $CI_COMMIT_BRANCH == "final" to the rules section of lint_job, test_job, and build_job so they trigger appropriately. .gitlab-ci.yml — Updated the before_script environment setup to use uv sync --all-extras (replacing --dev) to guarantee all required optional dependencies are installed. .gitlab-ci.yml — Prefixed the ruff and pytest commands with uv run inside their respective job scripts to ensure they are executed within the correct virtual environment. How to test

Push a new commit to the final branch. Open GitLab CI/CD pipelines and verify that the lint_job, test_job, and build_job automatically trigger. Check the job logs to ensure uv sync --all-extras successfully installs dependencies and that the linting/testing commands run without "command not found" errors.

Edited by Praveena Veeranki

Merge request reports

Loading