add pre-commit config

This commit is contained in:
Jan-Marten Brüggemann 2024-09-14 02:54:34 +02:00
parent 27675b60d1
commit ccbe10fbc3
2 changed files with 15 additions and 1 deletions

2
.gitignore vendored
View file

@ -2,4 +2,4 @@
.conda .conda
*.zim *.zim
*.part *.part
*.sha256sum *.sha256sum

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

@ -0,0 +1,14 @@
# 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
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
hooks:
- id: black