From 626f51ce8046a66b7bceb95cdc9ecf46a2c66fa9 Mon Sep 17 00:00:00 2001 From: Alexander Engelsberger Date: Fri, 3 Jun 2022 10:46:30 +0200 Subject: [PATCH] ci: Add possible prerelease to bumpversion --- .bumpversion.cfg | 6 ++++-- .pre-commit-config.yaml | 1 + prototorch/models/__init__.py | 36 ----------------------------------- 3 files changed, 5 insertions(+), 38 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 861cb09..a82ffbb 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -2,8 +2,10 @@ current_version = 0.5.2 commit = True tag = True -parse = (?P\d+)\.(?P\d+)\.(?P\d+) -serialize = {major}.{minor}.{patch} +parse = (?P\d+)\.(?P\d+)\.(?P\d+)((?P[a-zA-Z0-9_.-]+))? +serialize = + {major}.{minor}.{patch}-{release} + {major}.{minor}.{patch} message = build: bump version {current_version} → {new_version} [bumpversion:file:setup.py] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f2aa7e..d8bcbf3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,7 @@ repos: rev: v4.2.0 hooks: - id: trailing-whitespace + exclude: (^\.bumpversion\.cfg$|cli_messages\.py) - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files diff --git a/prototorch/models/__init__.py b/prototorch/models/__init__.py index 40e6ab5..a7d8a9f 100644 --- a/prototorch/models/__init__.py +++ b/prototorch/models/__init__.py @@ -1,39 +1,3 @@ """`models` plugin for the `prototorch` package.""" -from .callbacks import PrototypeConvergence, PruneLoserPrototypes -from .cbc import CBC, ImageCBC -from .glvq import ( - GLVQ, - GLVQ1, - GLVQ21, - GMLVQ, - GRLVQ, - GTLVQ, - LGMLVQ, - LVQMLN, - ImageGLVQ, - ImageGMLVQ, - ImageGTLVQ, - SiameseGLVQ, - SiameseGMLVQ, - SiameseGTLVQ, -) -from .knn import KNN -from .lvq import ( - LVQ1, - LVQ21, - MedianLVQ, -) -from .probabilistic import ( - CELVQ, - RSLVQ, - SLVQ, -) -from .unsupervised import ( - GrowingNeuralGas, - KohonenSOM, - NeuralGas, -) -from .vis import * - __version__ = "0.5.2"