oncall-engine/engine/apps/alerts/tasks
Joey Orlando 9dde1805aa
add mypy static type checker to backend codebase (#2151)
# What this PR does

- Adds [`mypy` static type checking](https://mypy-lang.org/) to our CI
pipeline. Currently there is still a **ton** of errors being returned by
the tool, as we'll need to fix pre-existing errors. I think we can
slowly chip away at these errors in small PRs, doing them all in one
large PR is likely very risky.
- Also, this PR starts chipping away at one of the main type errors that
we have which is accessing the `datetime` class (from the `datetime`
library) or `timedelta` function on the `django.utils.timezone` module.
Basically we should be instead accessing these two objects from the
native `datetime` module. This makes sense because the [`__all__`
attribute](https://github.com/django/django/blob/main/django/utils/timezone.py#L14-L30)
in `django.utils.timezone` does not re-export `datetime` or `timedelta`.
- splits `engine` dependencies out into `requirements.txt` and
`requirements-dev.txt`

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated (N/A)
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required) (N/A)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required) (N/A)
2023-06-12 12:50:33 -04:00
..
__init__.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
acknowledge_reminder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_web_title_cache.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
call_ack_url.py Lint 2022-08-02 15:26:17 -06:00
check_escalation_finished.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
compare_escalations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
create_contact_points_for_datasource.py Refactor create/update contact points for Alerting integration (#872) 2023-01-25 09:42:42 +01:00
custom_button_result.py Handle JSONDecodeError for outgoing webhooks (#460) 2022-09-01 14:36:34 +01:00
custom_webhook_result.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
delete_alert_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
distribute_alert.py Add users_to_be_notified to new webhooks payload (#1798) 2023-04-20 16:13:48 +00:00
escalate_alert_group.py Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
invite_user_to_join_incident.py Refactor get_user_verbal_for_team_for_slack. (#809) 2023-03-07 10:09:37 +00:00
maintenance.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
notify_all.py Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
notify_group.py Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
notify_ical_schedule_shift.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
notify_user.py Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
resolve_alert_group_by_source_if_needed.py Limit number of alertmanager alerts in alert group to autoresolve (#1779) 2023-04-24 05:38:21 +00:00
resolve_by_last_step.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_alert_group_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_update_log_report_signal.py Refactor maintenance (#1340) 2023-02-23 07:13:03 +00:00
send_update_postmortem_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_update_resolution_note_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
sync_grafana_alerting_contact_points.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
task_logger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
unsilence.py OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
wipe.py World, meet OnCall! 2022-06-03 08:09:47 -06:00