-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
67 lines (51 loc) · 1.65 KB
/
mypy.ini
File metadata and controls
67 lines (51 loc) · 1.65 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[mypy]
warn_unused_configs = True
warn_redundant_casts = True
plugins = pydantic.mypy
[mypy-astropy.*]
ignore_missing_imports = True
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-bokeh.*]
ignore_missing_imports = True
[mypy-SCons.*]
ignore_missing_imports = True
# Don't check LSST packages generally or even try to import them, since most
# don't have type annotations.
[mypy-lsst.*]
ignore_missing_imports = True
ignore_errors = True
# Do expect to import type annotations from LSST middleware dependencies that
# should have them, but don't re-check them as they have their own mypy.ini
# files with their own exceptions. We don't include obs_base in this list even
# though it has type annotations because we can't install it when running the
# mypy GitHub action. That means local MyPy runs will find problems the GitHub
# action won't, but hopefully not the converse of that.
[mypy-lsst.utils.*]
ignore_missing_imports = False
ignore_errors = True
[mypy-lsst.resources.*]
ignore_missing_imports = False
ignore_errors = True
[mypy-lsst.daf.butler.*]
ignore_missing_imports = False
ignore_errors = True
[mypy-lsst.pipe.base.*]
ignore_missing_imports = False
ignore_errors = True
[mypy-lsst.ctrl.mpexec.*]
ignore_missing_imports = False
ignore_errors = True
# Check all of ci.middleware...
[mypy-lsst.ci.middleware.*]
ignore_missing_imports = False
ignore_errors = False
disallow_untyped_defs = True
disallow_incomplete_defs = True
strict_equality = True
warn_unreachable = True
warn_unused_ignores = False
# version.py is added by scons and may not exist when we run mypy.
[mypy-lsst.ci.middleware.version]
ignore_errors = True
ignore_missing_imports = True