Black's repository has been moved from https://github.com/ambv/black to https://github.com/python/black due to which (maybe) it is no more working before committing.
Follow #93 on the installation instructions.
You will have to change the repository of black in .pre-commit-config.yaml file and then run pre-commit install