From 1de74261bef1a4c25250b7390b965093141c88f0 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 17 Sep 2024 10:12:20 +0200 Subject: remove user requirement dod check --- scripts/reqs2tex.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/reqs2tex.py b/scripts/reqs2tex.py index 3bf0501..6b7b77a 100755 --- a/scripts/reqs2tex.py +++ b/scripts/reqs2tex.py @@ -41,10 +41,6 @@ def sanitize(item, ids): if item['priority'] not in ['must', 'should', 'could', 'will not']: die(f"unknown or missing requirement priority {repr(item['type'])}") - # logic checks - if item['type'] != 'user' and item['done'] is not None: - die("has definition of done but is not a user requirement") - # conversions if isinstance(item['done'], list): # safety check @@ -86,7 +82,7 @@ def fmt_tex(data): tex.env('description', tex.cmd('item', ['Priority']) + req['priority'].title() +\ tex.cmd('item', ['Requirement']) + req['description'] +\ - (tex.cmd('item', ['Definition of done']) + req['done'] if req['type'] == 'user' else "") + (tex.cmd('item', ['Definition of done']) + req['done'] if req['done'] is not None else "") ) ) return "\n\n".join(out) -- cgit v1.2.3