Add release check to make sure no TODOs remain in release notes

This commit is contained in:
Hugo van Kemenade 2023-04-08 19:52:04 +03:00
parent 4ffbbe194c
commit 6797e47458
2 changed files with 7 additions and 0 deletions

View File

@ -78,6 +78,7 @@ debug:
.PHONY: release-test .PHONY: release-test
release-test: release-test:
python3 Tests/check_release_notes.py
python3 -m pip install -e .[tests] python3 -m pip install -e .[tests]
python3 selftest.py python3 selftest.py
python3 -m pytest Tests python3 -m pytest Tests

View File

@ -0,0 +1,6 @@
import sys
from pathlib import Path
for rst in Path("docs/releasenotes/").rglob("[1-9]*.rst"):
if "TODO" in open(rst).read():
sys.exit(f"Error: remove TODO from {rst}")