-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmypy.ini
More file actions
40 lines (30 loc) · 1.11 KB
/
mypy.ini
File metadata and controls
40 lines (30 loc) · 1.11 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
[mypy]
python_version = 3.11
strict = True
exclude = ^test/
# ── errors that require third-party stubs we don't control ──────────────────
# import-not-found : kipy, pcbnew, wx, … have no published stubs
# import-untyped : matplotlib, numpy ship without py.typed / stubs
# no-redef : false positives from the try/except import pattern
# misc : "Class cannot subclass 'X' (has type 'Any')" for wx/pcbnew
disable_error_code = import-not-found, import-untyped, no-redef, misc
# ── per-module overrides for untyped third-party packages ───────────────────
[mypy-wx.*]
ignore_missing_imports = True
[mypy-kipy.*]
ignore_missing_imports = True
[mypy-pcbnew.*]
ignore_missing_imports = True
[mypy-matplotlib.*]
ignore_missing_imports = True
[mypy-bfieldtools.*]
ignore_missing_imports = True
[mypy-trimesh.*]
ignore_missing_imports = True
[mypy-scipy.*]
ignore_missing_imports = True
# ngspyce lives inside the package itself – still untyped
[mypy-plugins.ngspyce.*]
ignore_errors = True
[mypy-ngspyce.*]
ignore_errors = True