fix: escape backslashes in TOML regex pattern

Fixed TOML decode error in pyproject.toml version_pattern field
This commit is contained in:
Fahad
2025-08-20 16:28:43 +04:00
parent 340b58f2e7
commit 1c973afb00

View File

@@ -88,7 +88,7 @@ ignore = [
version_toml = ["pyproject.toml:project.version"]
branch = "main"
version_source = "tag"
version_pattern = "v(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)"
version_pattern = "v(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
major_on_zero = false
build_command = "python -m pip install --upgrade build && python -m build"
dist_path = "dist/"