Add pre-commit

This commit is contained in:
Damontecres 2025-09-23 18:01:56 -04:00
parent 379559c076
commit 3bf382a6b9
No known key found for this signature in database
4 changed files with 22 additions and 4 deletions

20
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.12.0
hooks:
- id: pretty-format-kotlin
args: [ --autofix, --ktlint-version=1.7.1 ]
- repo: local
hooks:
- id: check-debug-enabled
name: Check debug enabled
entry: val DEBUG = true
language: pygrep
files: '.+\.kt'