mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
Adding a configuration to invoke clang-format v13 on all modified files as part of the commit process, and a new script file `setup-env.sh` to manage installing the pre-commit hook. The hook is installed using a local python venv to ensure the correct version of clang-format is used. This approach also enables the hook to be installed on any platform which supports python although the setup script is limited to platforms which support bash.
8 lines
129 B
YAML
8 lines
129 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v13.0.1
|
|
hooks:
|
|
- id: clang-format
|
|
args: [ -i ]
|
|
|