File: mypy.ini

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (37 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Regular configuration file (can be used as base in other projects, runs in CI)

[mypy]
# Modified in `tests.yml`
incremental = true

# Strictness:
# TODO: add type args to all generics
disallow_any_generics = false
# TODO: fix `Any` subclassing in `typeshed/builtins.pyi`
disallow_subclassing_any = false
strict = true
local_partial_types = true
warn_unreachable = true

disable_error_code = empty-body
enable_error_code =
    deprecated,
    exhaustive-match,
    ignore-without-code,
    possibly-undefined,
    redundant-expr,
    redundant-self,
    truthy-bool,
    truthy-iterable,
    unimported-reveal,
    unused-awaitable,

show_traceback = true

plugins =
    mypy_django_plugin.main,
    mypy.plugins.proper_plugin

# Our settings:
[mypy.plugins.django-stubs]
django_settings_module = scripts.django_tests_settings