[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

View File

@ -3,7 +3,7 @@ current_version = 0.5.0
commit = True commit = True
tag = True tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
serialize = serialize =
{major}.{minor}.{patch} {major}.{minor}.{patch}
[bumpversion:file:setup.py] [bumpversion:file:setup.py]

2
.gitignore vendored
View File

@ -155,4 +155,4 @@ scratch*
.vscode/ .vscode/
reports reports
artifacts artifacts

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", "requests",
"tqdm", "tqdm",
] ]
DEV = ["bumpversion"] DEV = [
"bumpversion",
"pre-commit",
]
DOCS = [ DOCS = [
"recommonmark", "recommonmark",
"sphinx", "sphinx",