From f3335a7fe18e03ef7b63698caf2c6debfdc4eff2 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 16 Mar 2023 18:24:33 +0100 Subject: [PATCH] Add configuration for mypy This does not require annotations yet, but it will check all code outside of functions. --- mypy.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..918bc71 --- /dev/null +++ b/mypy.ini @@ -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"