Fix dependencies in `pyproject.toml` so dev dependencies are optional, and added additional pre commit configurations.
2024.03.05.01
- Fixed issue in `ApiError` initialization method which was a typo causing attributes not to be set, leading to unexpected `ValueError` instead of `ApiError` when raising one.