Add pre-commit configuration

https://pre-commit.com/
This commit is contained in:
Amedee Van Gasse ✨🌈🦄
2024-10-19 23:36:52 +02:00
parent 435ad3d448
commit 1d94142c2a

23
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,23 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: ['--unsafe']
- id: check-added-large-files
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
hooks:
- id: check-github-actions
args: [--verbose]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint