added pre-commit

This commit is contained in:
Jonas Forsberg 2024-10-19 09:11:27 +02:00
parent cd302f6f25
commit cbeed810d6
2 changed files with 13 additions and 0 deletions

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

@ -0,0 +1,10 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

3
Makefile Normal file
View File

@ -0,0 +1,3 @@
pre-commit:
pip install pre-commit
pre-commit install