Update flake8 from 3.8.4 to 4.0.1

And adds `noqa` to some non-errors which are being flagged.
This commit is contained in:
Katie Smith
2022-03-02 15:52:18 +00:00
parent e497cbbec6
commit 807db037eb
3 changed files with 8 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ def dao_get_uploads_by_service_id(service_id, limit_days=None, page=1, page_size
Notification.notification_type == LETTER_TYPE,
Notification.api_key_id == None, # noqa
Notification.status != NOTIFICATION_CANCELLED,
Template.hidden == True,
Template.hidden == True, # noqa
Notification.created_at >= today - func.coalesce(ServiceDataRetention.days_of_retention, 7)
]
if limit_days is not None: