diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 48628b2..ef4285b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -3,7 +3,7 @@ current_version = 0.5.0 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+) -serialize = +serialize = {major}.{minor}.{patch} [bumpversion:file:setup.py] diff --git a/.gitignore b/.gitignore index 78ae7a0..da6479c 100644 --- a/.gitignore +++ b/.gitignore @@ -155,4 +155,4 @@ scratch* .vscode/ reports -artifacts \ No newline at end of file +artifacts diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..95be2ec --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/setup.py b/setup.py index 7cf6d80..e8383ec 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,10 @@ DATASETS = [ "requests", "tqdm", ] -DEV = ["bumpversion"] +DEV = [ + "bumpversion", + "pre-commit", +] DOCS = [ "recommonmark", "sphinx",