Commit graph

6 commits

Author SHA1 Message Date
Peter Hutterer
a6028a7b87 Format the code with clang-format
clang-format taken from libinput, except for
  ColumnLimit: 100
and some macro definitions (which don't all have an effect anyway...)

It's not perfect but good enough and at least consistent.

Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/383>
2026-03-12 13:55:19 +10:00
Peter Hutterer
fb85496aa3 pre-commit: update to the latest version of our hooks
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/325>
2025-02-03 13:17:12 +10:00
Peter Hutterer
0770fec433 Drop black, switch to ruff format 2024-10-17 16:18:51 +10:00
Peter Hutterer
9697aa9c74 pre-commit: autoupdate and add two more useful checkers
We don't have symlinks but let's check for them anyway. And check for
merge conflict leftoers too.
2023-12-05 14:25:10 +10:00
Peter Hutterer
6970a5153a pre-commit: add a hook to generate the CI templates
Simple local hook that is skipped if ci-fairy isn't installed locally.
2023-05-19 14:49:17 +10:00
Peter Hutterer
e6cb6b1998 Add a pre-commit hook
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)
2023-03-13 08:52:08 +10:00