File: check_release_notes.py

package info (click to toggle)
pillow 12.1.0-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 72,560 kB
  • sloc: python: 49,748; ansic: 38,748; makefile: 302; sh: 168; javascript: 85
file content (8 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (3)
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}")