add bump-my-version

This commit is contained in:
2025-01-12 21:15:25 +01:00
parent 6ed3e30f56
commit a61f197da9
2 changed files with 466 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ black = "^24.0.0"
mypy = "^1.5.1"
pylama = "^8.4.1"
types-pyyaml = "^6.0.12.11"
bump-my-version = "^0.29.0"
[build-system]
requires = ["poetry-core"]
@@ -41,3 +42,16 @@ line-length = 100
# MYPY settings
[tool.mypy]
files = ["seafile_mirror/*.py"]
# Bump-My-Version
[tool.bumpversion]
commit = true
tag = true
allow_dirty = false
tag_name = "v{new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
regex = true
search = "^version = \"{current_version}\""
replace = "version = \"{new_version}\""