File: mypy.ini

package info (click to toggle)
python-testfixtures 9.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 10,167; makefile: 76; sh: 9
file content (37 lines) | stat: -rw-r--r-- 1,009 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
[mypy]
disallow_untyped_defs = True
disallow_incomplete_defs = True
plugins =
    mypy_django_plugin.main,
    mypy_zope:plugin,

[mypy.plugins.django-stubs]
django_settings_module = "testfixtures.tests.test_django.settings"

# "nice to have" stuff to fix:
[mypy-testfixtures.tests.*]
disable_error_code = no-untyped-call,no-untyped-def

# Be more picky with some test files:
[mypy-testfixtures.tests.test_date]
enable_error_code = no-untyped-call,no-untyped-def

[mypy-testfixtures.tests.test_datetime]
enable_error_code = no-untyped-call,no-untyped-def

[mypy-testfixtures.tests.test_outputcapture]
enable_error_code = no-untyped-call,no-untyped-def

[mypy-testfixtures.tests.test_should_raise]
enable_error_code = no-untyped-call,no-untyped-def

[mypy-testfixtures.tests.test_time]
enable_error_code = no-untyped-call,no-untyped-def

# permanent exclusions and workaround:
[mypy-constantly.*]
ignore_missing_imports = True

[mypy-guppy]
# guppy isn't actually ever installed:
ignore_missing_imports = True