File: check_release_notes.py

package info (click to toggle)
pillow 12.1.1-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 72,624 kB
  • sloc: python: 49,768; ansic: 38,750; makefile: 302; sh: 169; javascript: 85
file content (8 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
from __future__ import annotations

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}")