build: remove black from pre-commit and project dependencies, add ruff format instead
Motivation of changes
- Removing black from dependencies as a redundant package since there is ruff already.
- Add ruff formatting instead.
- Format the repository with new ruff formatter.
Edited by Enido Shatro