# Suggestion: use prek instead of overcommit

**URL:** <https://community.zammad.org/t/suggestion-use-prek-instead-of-overcommit/21341>\
**Category:** Feature requests\
**Created:** [October 8, 2026, 9:55am UTC](https://community.zammad.org/t/suggestion-use-prek-instead-of-overcommit/21341 "2026-10-08T09:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devkral](https://community.zammad.org/user_avatar/community.zammad.org/devkral/32/12109_2.png) [@devkral](https://community.zammad.org/u/devkral)\
**Post date:** [October 8, 2026, 9:55am UTC](https://community.zammad.org/t/suggestion-use-prek-instead-of-overcommit/21341/1 "2026-10-08T09:55:09Z")

</div>

Disclosure: I leveraged AI assistance to craft the suggestion because I have some challenges in phrasing my ideas clearly (and I am not a native speaker).

# Problem

The existing pre-commit like solution `overcommit` is tightly coupled to ruby and hasn’t support for other, in zammad used languages like `go` or `shell`.

# Existing solutions

**pre-commit**  
The standard solution is `pre-commit`. But is maintained by one person and requires python, so this project isn’t a solution.

**prek**  
Someone having differences with the `pre-commit` maintainer created a compatible re-implementation in rust.  
This works so well, that I switched to it (even I program mainly python) and is my recommendation.

# Advantages

1. `prek` is self-contained and has a devcontainer integration. It doesn’t require a working ruby environment to work, so it doesn’t break easily when not having a sound ruby setup outside of the devcontainer.
2. No path manipulation. A second side-effect of having a self-contained executable is, that we doesn’t need to manipulate the `$PATH` variable and doesn’t have so much clutter. Also rbenv leads to a significant performance drop when spawning a cli.
3. `prek` is language-agnostic. You aren’t tied to ruby. It can test js, go, markdown, … as well. Even unsupported text file formats can be cleaned (trailing newline, whitespaces).
4. Lower entry-burden by a familiar syntax (`pre-commit` style and yaml format).
5. `pre-commit` compatibility. You can use generic hooks from `pre-commit`.
6. Healthier maintenance: Unlike `pre-commit`, which is closely tied to a single maintainer, `prek` has a bigger contributor base, ensuring sustained development and community support. It achieves an even higher development speed than `overcommit`.

(for me the main advantages): no performance drop and not maintaining another language setup; just for having git hooks ;).
