Skip to content

Commit

Permalink
Mypy import errors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Domejko committed Apr 11, 2024
1 parent 8ea8798 commit 54de007
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 1 deletion.
150 changes: 149 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ django-tz-detect = "^0.5.0"
typos = "^1.20.3"
pre-commit = "^3.7.0"
pulumi-aws = "^6.29.0"
mypy = "1.7.1"
djangorestframework-stubs = {extras = ["compatible-mypy"], version = "^3.14.5"}

[tool.poetry.group.django.dependencies]
Django = "^5.0.2"
Expand Down Expand Up @@ -110,3 +112,28 @@ filename = "backend/__init__.py"
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'

[tool.mypy]
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main"
]

[tool.django-stubs]
django_settings_module = "settings.settings"

[[tool.mypy.overrides]]
module = [
"debug_toolbar",
"django.core.cache.backends.redis",
"django_ratelimit.core",
"django_ratelimit.decorators",
"django_ratelimit.exceptions",
"django_ratelimit",
"environ",
"forex_python.converter",
"login_required",
"storages.backends.s3",
"social_django.models"
]
ignore_missing_imports = true

0 comments on commit 54de007

Please sign in to comment.