Blackify, isort and fix code spells reported by pre-commit hooks
Migrated from D5080 (view on Phabricator)