Upgrade black in pre-commit hooks and use the official mirror

Edited by Simon Panay