chore(api): add mypy django stubs plugins (#1726)
This commit is contained in:
parent
8a98542aa4
commit
9d5de61241
|
@ -13,6 +13,15 @@ disable = [
|
||||||
[tool.pylint.design]
|
[tool.pylint.design]
|
||||||
max-parents = 15
|
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]
|
[build-system]
|
||||||
requires = ["setuptools", "wheel"]
|
requires = ["setuptools", "wheel"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
|
@ -41,6 +41,8 @@ setup(
|
||||||
"psycopg2",
|
"psycopg2",
|
||||||
],
|
],
|
||||||
"dev": [
|
"dev": [
|
||||||
|
"django-stubs",
|
||||||
|
"djangorestframework-stubs",
|
||||||
"model_bakery",
|
"model_bakery",
|
||||||
"psycopg2-binary",
|
"psycopg2-binary",
|
||||||
"pylint-django",
|
"pylint-django",
|
||||||
|
|
Loading…
Reference in New Issue