Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
on system path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I am tired of correcting typos in code review.
|
|
|
|
|
|
|
|
This merges the clang-format and line-length hooks into a single one.
Semantically, this makes way more sense. Also, this prevent multiple
attempted commit that are rejected by pre-commit (pre-commit might skip
the line-length hook if old clang-format hook already failed).
Also, this removes any dependency on git-clang-format and implements the
whole mechanism itself. It retrieves all added lines from the unified diff
instead and is now capable of taking PRE_COMMIT_FROM_REF into account.
By moving the git-related code into a separate githelper library, it's
way easier to write additional python wrappers for new hooks, e.g. for
clang-tidy.
|
|
- use tools/clang_format_wrapper.py to execute git-clang-format
- fix minor formatting issues in .pre-commit-config.yam
- enable verbose for clang-format pre-commit plugin
- add types to black pre-commit plugin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We also have a "script" directory (without the "s"), which makes it confusing
and harder to select the correct directory with shell completion.
The "tools" name fits better, since the directory contains tools that are/were
helpful during mixxx development (these tools are all scripts - but that
is of secondary importance and also coincidence).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Running `git clang-format` in parallel (when multiple files have been
changed) can cause issues because `.git/index.lock` already exists.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|