chore(api): add mypy django stubs plugins (#1726)

This commit is contained in:
Jonas L 2022-04-09 12:18:23 +02:00 committed by GitHub
parent 8a98542aa4
commit 9d5de61241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,15 @@ disable = [
[tool.pylint.design]
max-parents = 15
[tool.mypy]
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main",
]
[tool.django-stubs]
django_settings_module = "libretime_api.settings.testing"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

View File

@ -41,6 +41,8 @@ setup(
"psycopg2",
],
"dev": [
"django-stubs",
"djangorestframework-stubs",
"model_bakery",
"psycopg2-binary",
"pylint-django",