Skip to content

Use pre-commit for formatting

Marco Clemencic requested to merge use-pre-commit into master
  • use pre-commit to run formatting checks
  • change C++ formatter to clang-format 16
  • change Python formatter to black
  • add flake8 checks and fix the issues

See LHCb!4346 for more context

Note: I discovered that we can use clang-format-8 in pre-commit (it was not possible when I first checked), so I modified this MR to introduce pre-commit in a less intrusive way. We can change the version of clang-format and the Python formatter another time.

Edited by Marco Clemencic

Merge request reports