diff --git a/Makefile b/Makefile index f51325d474b..e41f3641108 100644 --- a/Makefile +++ b/Makefile @@ -78,6 +78,7 @@ debug: .PHONY: release-test release-test: + python3 Tests/check_release_notes.py python3 -m pip install -e .[tests] python3 selftest.py python3 -m pytest Tests diff --git a/Tests/check_release_notes.py b/Tests/check_release_notes.py new file mode 100644 index 00000000000..0a9a898d7f7 --- /dev/null +++ b/Tests/check_release_notes.py @@ -0,0 +1,6 @@ +import sys +from pathlib import Path + +for rst in Path("docs/releasenotes").glob("[1-9]*.rst"): + if "TODO" in open(rst).read(): + sys.exit(f"Error: remove TODO from {rst}")