oncall-engine/engine/apps/grafana_plugin
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
..
helpers Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
tasks Do not retry start_sync_organization (#1856) 2023-05-02 02:33:26 +00:00
tests properly parse grafana cloud feature toggles (#1880) 2023-05-04 16:38:26 +00:00
views Store org cluster_slug (#1480) 2023-03-09 04:10:19 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
apps.py allow the POST incoming alert endpoints to queue create_alert tasks independent of the database status (#1896) 2023-05-10 12:36:23 +00:00
permissions.py add mypy static type checker to backend codebase (#2151) 2023-06-12 12:50:33 -04:00
urls.py Get rid of installation token + add a bunch of tests (#624) 2022-11-21 16:26:00 +01:00