ci: Add basic setup for pre-commit and homogenize formatting
Add a basic configuration for pre-commit to have consistent formatting across the repository for all c++ and python files.
Format all files according to either black or the specified .clang-format configuration
Edited by Thomas Madlener