Pre commit update
Add pre-commit based on what DIRAC uses. The hook run only on modified files.
To install pre-commit: https://dirac.readthedocs.io/en/integration/DeveloperGuide/CodingConvention/index.html?highlight=pre-commit#formatting (Must not be installed using pip!)