Skip to content

chore: fix pre-commit checks and resolve uv-audit vulnerabilities

Swarna rathna madhuri Kanda requested to merge fix/mypy-type-errors into feature-final

Here is a clean and professional MR description for your work 👇


## What does this MR do and why?

This MR fixes pre-commit check failures and resolves dependency vulnerabilities detected by `uv audit`.

The changes ensure that all pre-commit hooks (including Ruff linting, formatting, mypy type checking, and vulnerability scanning) pass successfully. It also addresses security issues in project dependencies, improving the overall stability and security of the codebase.

This update enhances the developer workflow by enforcing automated checks before commits and maintaining code quality and compliance with project standards.

## References

- Pre-commit hooks configuration
- `uv audit` for dependency vulnerability scanning
- Ruff for linting and formatting
- Mypy for type checking

## Screenshots or screen recordings

**before**![Screenshot_from_2026-03-31_11-56-17](/uploads/0e10a67fb449dcfe3011e270fb8b191b/Screenshot_from_2026-03-31_11-56-17.png)

**after**

![Screenshot_from_2026-03-31_12-25-05](/uploads/6493f8c4963127f85925d575cb7ea4ae/Screenshot_from_2026-03-31_12-25-05.png)


## How to set up and validate locally

1. Install dependencies:
   ```bash
   pip install uv pre-commit
  1. Install pre-commit hooks:

    pre-commit install
  2. Run all checks manually:

    uv run pre-commit run --all-files
  3. Verify:

    • All hooks (ruff, mypy, uv audit, etc.) pass successfully
    • No vulnerabilities or linting issues remain
  4. Try committing:

    git commit -m "test pre-commit"
    • Commit should succeed only if all checks pass

MR acceptance checklist

  • Fixed pre-commit hook failures
  • Resolved uv audit dependency vulnerabilities
  • Ensured all hooks pass successfully
  • No breaking changes introduced
  • Code quality and security improved

Merge request reports

Loading