Skip to content

Commit

Permalink
Merge pull request #7075 from hugovk/check-release-notes
Browse files Browse the repository at this point in the history
Add release check to make sure no TODOs remain in release notes
  • Loading branch information
mergify[bot] committed Apr 9, 2023
2 parents 4ffbbe1 + 80a1238 commit b0c7653
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions 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}")

0 comments on commit b0c7653

Please sign in to comment.