pre-commit: Add isort hook and configuration
Run isort
when committing by adding a new pre-commit hook.
Use the recommended isort
configuration in order to use it with black
without any conflicts (https://black.readthedocs.io/en/stable/compatible_configs.html#isort).
Migrated from D3972 (view on Phabricator)