Description:
Currently, contributors must manually run black or rely on CI feedback to catch PEP 8 violations. This leads to:
- Unnecessary "fix lint" commit iterations.
- Inconsistent formatting across different contributors.
- Manual overhead for maintainers during code review.
Proposed Solution:
Introduce a .pre-commit-config.yaml file to automate code quality checks before commits are finalized. This ensures the codebase remains clean and uniform.