mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Add configuration for mypy
This does not require annotations yet, but it will check all code outside of functions.
This commit is contained in:
parent
07653f84f3
commit
f3335a7fe1
1 changed files with 16 additions and 0 deletions
16
mypy.ini
Normal file
16
mypy.ini
Normal 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"
|
||||
Loading…
Reference in a new issue