Skip to content

Commit 6e6bc86

Browse files
Lukas MollemanLukas Molleman
authored andcommitted
Added mypy config
1 parent 95fd96c commit 6e6bc86

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

pyproject.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,53 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
5656
# Per-file ignores currently specified in the flake8 configuration
5757
[tool.ruff.per-file-ignores]
5858
"sympy/interactive/session.py" = ["F821"]
59+
60+
# Global mypy settings:
61+
[tool.mypy]
62+
warn_unused_configs = true
63+
exclude = [
64+
"sympy/parsing/autolev/test-examples",
65+
]
66+
67+
# Per module settings:
68+
[[tool.mypy.overrides]]
69+
module = [
70+
"sympy.parsing.latex._antlr.*",
71+
"sympy.parsing.autolev._antlr.*",
72+
"sympy.benchmarks.*",
73+
"sympy.plotting.pygletplot.*",
74+
]
75+
ignore_errors = true
76+
77+
# Third-party untyped code:
78+
[[tool.mypy.overrides]]
79+
module = [
80+
"antlr4.*",
81+
"Cython.*",
82+
"gmpy.*",
83+
"gmpy2.*",
84+
"IPython.*",
85+
"lxml.*",
86+
"matchpy.*",
87+
"matplotlib.*",
88+
"mpmath.*",
89+
"numpy.*",
90+
"PIL.*",
91+
"pycosat.*",
92+
"pyglet.*",
93+
"pymc.*",
94+
"pymc3.*",
95+
"python-sat.*",
96+
"pytest.*",
97+
"_pytest.*",
98+
"sage.*",
99+
"scipy.*",
100+
"symengine.*",
101+
"aesara.*",
102+
"xml.*",
103+
"pydy.*",
104+
"theano.*",
105+
"multiset.*",
106+
"pysat.*",
107+
]
108+
ignore_missing_imports = true

0 commit comments

Comments
 (0)