2022-01-12 20:09:14 +01:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
2024-02-21 14:54:23 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-02-21 23:44:34 +01:00
|
|
|
rev: v4.5.0
|
2024-02-21 14:54:23 +01:00
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
2024-02-21 23:28:35 +01:00
|
|
|
- repo: https://github.com/mfocko/pre-commit-hooks
|
2024-03-15 17:16:57 +01:00
|
|
|
rev: 1.2.1
|
2024-02-21 23:28:35 +01:00
|
|
|
hooks:
|
|
|
|
- id: rust-fmt
|
|
|
|
files: \.rs$
|
2024-02-21 23:44:34 +01:00
|
|
|
- id: clang-format
|
|
|
|
files: \.cpp$
|
2024-02-26 16:37:43 +01:00
|
|
|
- id: gofmt
|
|
|
|
files: \.go$
|
2024-03-15 17:16:57 +01:00
|
|
|
- id: dotnet-format
|
|
|
|
args:
|
2024-08-06 15:59:15 +02:00
|
|
|
- "cs/cs.csproj"
|
2024-03-15 17:16:57 +01:00
|
|
|
- "--include"
|
|
|
|
files: \.cs$
|
2024-03-02 20:59:59 +01:00
|
|
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
|
|
rev: v2.12.0
|
|
|
|
hooks:
|
|
|
|
- id: pretty-format-java
|
|
|
|
files: \.java$
|
|
|
|
args: [--autofix]
|
2024-05-17 18:08:08 +02:00
|
|
|
- id: pretty-format-kotlin
|
|
|
|
files: \.kt$
|
|
|
|
args: [--autofix]
|
2024-02-22 16:51:33 +01:00
|
|
|
- repo: https://github.com/commitizen-tools/commitizen
|
|
|
|
rev: v3.15.0
|
|
|
|
hooks:
|
|
|
|
- id: commitizen
|
|
|
|
- id: commitizen-branch
|
|
|
|
stages:
|
|
|
|
- push
|