Skip to content

Commit

Permalink
fix: Use django-stubs; add mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed Jul 23, 2023
1 parent b3a8f6a commit 0441f92
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[mypy]
# Run with --check-untyped-defs if you want to check all code.
# Without this, only functions with explicitly defined types are checked.
#check_untyped_defs = true
show_error_context = true
pretty = true
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = "tests.settings"
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ deps =
mypy==1.4.1
Django>=4.2,<4.3
phonenumbers
djangorestframework
django-types
djangorestframework-types
djangorestframework==3.14.0
django-stubs==4.2.3
djangorestframework-stubs==3.14.2
types-babel
skip_install = true

0 comments on commit 0441f92

Please sign in to comment.