[QA] Add default configuration for pre commit hooks

This commit is contained in:
Alexander Engelsberger 2021-06-16 12:44:00 +02:00 committed by Alexander Engelsberger
parent e4257ec1f1
commit 2c908a8361
4 changed files with 16 additions and 3 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: v4.0.1
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

View File

@ -26,7 +26,10 @@ DATASETS = [
"requests",
"tqdm",
]
DEV = ["bumpversion"]
DEV = [
"bumpversion",
"pre-commit",
]
DOCS = [
"recommonmark",
"sphinx",