diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 10:12:20 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-09-17 10:12:20 +0200 |
commit | 1de74261bef1a4c25250b7390b965093141c88f0 (patch) | |
tree | 975b3b6ab18ced814bc0cef56a8c826de7eda7a1 /scripts/reqs2tex.py | |
parent | 976a8d260fd138161317aac14df5311ef0ef07ca (diff) |
remove user requirement dod check
Diffstat (limited to 'scripts/reqs2tex.py')
-rwxr-xr-x | scripts/reqs2tex.py | 6 |
1 files changed, 1 insertions, 5 deletions
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) |