mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #7075 from hugovk/check-release-notes
Add release check to make sure no TODOs remain in release notes
This commit is contained in:
commit
b0c7653502
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
6
Tests/check_release_notes.py
Normal file
6
Tests/check_release_notes.py
Normal file
|
@ -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}")
|
Loading…
Reference in New Issue
Block a user