Skip to content

Commit cccd738

Browse files
committed
devops: add bumpversion tool
1 parent f2aafaf commit cccd738

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.bumpversion.cfg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[bumpversion]
2+
current_version = 0.1.5
3+
commit = True
4+
tag = True
5+
parse = (?P<major>\d+)\.(?P<feat>\d+)\.(?P<patch>\d+)
6+
serialize =
7+
{major}.{feat}.{patch}
8+
9+
[bumpversion:file:easy/__init__.py]

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ clean: ## Removing cached python compiled files
1313
install: ## Install dependencies
1414
make clean
1515
flit install --deps develop --symlink
16+
pre-commit install
1617

1718
lint: ## Run code linters
1819
autoflake --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports -r easy tests
@@ -47,6 +48,3 @@ bump-feat:
4748

4849
bump-major:
4950
bumpversion major
50-
51-
bump-build:
52-
bumpversion build

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ test = [
7070
dev = [
7171
"autoflake",
7272
"pre_commit",
73+
"bumpversion==0.6.0",
7374
]
7475
doc = [
7576
"mkdocs >=1.1.2,<2.0.0",

0 commit comments

Comments
 (0)