oncall-engine/engine/apps/mobile_app
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
..
migrations Disable "You're going OnCall soon" push notification (#1927) 2023-05-12 11:56:12 +00:00
tests Remove user defined time period from "you're going oncall" mobile push (#2001) 2023-05-24 16:14:48 +08:00
__init__.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
alert_rendering.py Fix warnings when running backend tests (#2079) 2023-06-06 18:38:00 +00:00
auth.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
backend.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
demo_push.py Test mobile push (#1933) 2023-05-18 15:52:42 +08:00
exceptions.py Test mobile push (#1933) 2023-05-18 15:52:42 +08:00
fcm_relay.py Support notification priority in FCM relay (#1630) 2023-03-27 14:36:51 +01:00
models.py Disable "You're going OnCall soon" push notification (#1927) 2023-05-12 11:56:12 +00:00
serializers.py add user settings for info notifications (#1926) 2023-05-12 10:23:42 +00:00
tasks.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
urls.py Mobile app settings backend (#1571) 2023-03-22 14:47:18 +00:00
views.py Mobile app settings backend (#1571) 2023-03-22 14:47:18 +00:00