Molodetz blogrol volgens DPP-template

This commit is contained in:
2026-10-05 09:36:20 +02:00
commit f290a4c766
277 changed files with 15758 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# retoor <retoor@molodetz.nl>
set -euo pipefail
if git rev-parse -q --verify MERGE_HEAD >/dev/null; then
exit 0
fi
if git diff --cached -U0 -- pyproject.toml | grep -q '^+version = '; then
exit 0
fi
python3 - <<'PY'
import re
from pathlib import Path
path = Path("pyproject.toml")
text = path.read_text(encoding="utf-8")
match = re.search(r'^version = "(\d+)\.(\d+)\.(\d+)"', text, re.M)
if match:
major, minor, patch = map(int, match.groups())
text = text.replace(match.group(0), f'version = "{major}.{minor}.{patch + 1}"', 1)
path.write_text(text, encoding="utf-8")
PY
git add pyproject.toml