Add configuration for mypy

This does not require annotations yet, but it will check all code
outside of functions.
This commit is contained in:
Maarten ter Huurne 2023-03-16 18:24:33 +01:00
parent 07653f84f3
commit f3335a7fe1

16
mypy.ini Normal file
View file

@ -0,0 +1,16 @@
[mypy]
implicit_reexport=False
pretty=True
show_error_codes=True
strict_equality=True
warn_redundant_casts=True
warn_unreachable=True
warn_unused_ignores=True
mypy_path = $MYPY_CONFIG_FILE_DIR
plugins =
mypy_django_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = "tests.settings"