chore: fix pre-commit checks and resolve uv-audit vulnerabilities
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**
**after**

## How to set up and validate locally
1. Install dependencies:
```bash
pip install uv pre-commit
-
Install pre-commit hooks:
pre-commit install -
Run all checks manually:
uv run pre-commit run --all-files -
Verify:
- All hooks (ruff, mypy, uv audit, etc.) pass successfully
- No vulnerabilities or linting issues remain
-
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 auditdependency vulnerabilities -
Ensured all hooks pass successfully -
No breaking changes introduced -
Code quality and security improved