Add new flak8 rules to do some meaningful corrections

This commit is contained in:
Alan Rominger
2022-09-15 09:30:33 -04:00
parent 1a696c4f25
commit d3eb2c1975
18 changed files with 26 additions and 29 deletions

View File

@@ -153,7 +153,7 @@ class Schedule(PrimordialModel, LaunchTimeConfig):
#
# Find the DTSTART rule or raise an error, its usually the first rule but that is not strictly enforced
start_date_rule = re.sub('^.*(DTSTART[^\s]+)\s.*$', r'\1', rrule)
start_date_rule = re.sub(r'^.*(DTSTART[^\s]+)\s.*$', r'\1', rrule)
if not start_date_rule:
raise ValueError('A DTSTART field needs to be in the rrule')