oncall-engine/engine/apps/public_api/serializers
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 World, meet OnCall! 2022-06-03 08:09:47 -06:00
action.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
alerts.py add several new database columns + emit two new Django signals (#1522) 2023-04-14 09:15:57 +02:00
escalation_chains.py Allow editing assigned team via public api (#1619) 2023-04-05 06:39:30 +00:00
escalation_policies.py Check for duplicated positions in TF escalation policies (#1554) 2023-03-16 11:48:11 +00:00
incidents.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
integrations.py Add inbound email address in integration API (#2113) 2023-06-06 13:08:54 +00:00
integtration_heartbeat.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
maintenance.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
on_call_shifts.py Update shift API to use a default for interval when missing (#1810) 2023-04-21 19:13:09 +00:00
organizations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
personal_notification_rules.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
resolution_notes.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
routes.py Public API: allow null escalation chain when creating routes (#1557) 2023-03-16 09:40:50 +00:00
schedules_base.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
schedules_calendar.py Allow editing assigned team via public api (#1619) 2023-04-05 06:39:30 +00:00
schedules_ical.py Allow editing assigned team via public api (#1619) 2023-04-05 06:39:30 +00:00
schedules_polymorphic.py Initial web schedule model and serializers. Add override shift type. 2022-07-05 12:41:55 -03:00
schedules_web.py Allow editing assigned team via public api (#1619) 2023-04-05 06:39:30 +00:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
teams.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_groups.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
users.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00