0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
posthog/mypy.ini
James Greenhill 0f1d74dee6
Add Django-debug-toolbar for profiling requests performance (#768)
* Add Django-debug-toolbar for profiling requests performance

* Only require and import debug-toolbar in dev

* don't bother checking types for debug_toolbar

* mypy configs and try/except for import of debug_toolbar

* include debug toolbar url config
2020-05-18 18:15:31 +01:00

48 lines
893 B
INI

[mypy]
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
strict_optional = True
no_implicit_optional = True
warn_unused_ignores = True
check_untyped_defs = True
warn_unreachable = True
strict_equality = True
[mypy-posthog.tasks.*]
disallow_untyped_defs = True
check_untyped_defs = True
[mypy.plugins.django-stubs]
django_settings_module = posthog.settings
[mypy-dj_database_url]
ignore_missing_imports = True
[mypy-social_django.models]
ignore_missing_imports = True
[mypy-celery.*]
ignore_missing_imports = True
[mypy-social_django.strategy]
ignore_missing_imports = True
[mypy-social_core.utils]
ignore_missing_imports = True
[mypy-posthoganalytics]
ignore_missing_imports = True
[mypy-pandas]
ignore_missing_imports = True
[mypy-numpy]
ignore_missing_imports = True
[mypy-freezegun]
ignore_missing_imports = True
[mypy-debug_toolbar]
ignore_missing_imports = True