Skip to content

Add a pre-commit hook

Peter Hutterer requested to merge whot/libei:wip/pre-commit into main

Moving my local hooks into a pre-commit hook set that others can find useful too:

  • remove trailing whitespaces and newlines
  • don't allow commits to the "main" branch
  • python black and python ruff (same args as in the CI)

Merge request reports

Loading