-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathmypy.ini
More file actions
36 lines (29 loc) · 1.3 KB
/
mypy.ini
File metadata and controls
36 lines (29 loc) · 1.3 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
[mypy]
show_error_codes = true
plugins = duet.typing, numpy.typing.mypy_plugin
allow_redefinition = true
check_untyped_defs = true
# Disabling function override checking
# Qualtran has many places where kwargs are used
# with the intention to override in subclasses in ways mypy does not like
disable_error_code = override
[mypy-__main__]
follow_imports = silent
ignore_missing_imports = true
# 3rd-party libs for which we don't have stubs
# Google
[mypy-google.api_core.*,google.auth.*,google.colab.*,google.protobuf.text_format.*,google.cloud.*,google.*]
follow_imports = silent
ignore_missing_imports = true
# Non-Google
[mypy-sympy.*,matplotlib.*,proto.*,pandas.*,scipy.*,freezegun.*,mpl_toolkits.*,networkx.*,ply.*,astroid.*,pytest.*,_pytest.*,pylint.*,setuptools.*,qiskit.*,quimb.*,pylatex.*,filelock.*,sortedcontainers.*,tqdm.*,plotly.*,dash.*,tensorflow_docs.*,fxpmath.*,ipywidgets.*,cachetools.*,pydot.*,nbformat.*,nbconvert.*,openfermion.*,pennylane.*,mpmath.*,jupytext.*]
follow_imports = silent
ignore_missing_imports = true
[mypy-sympy.*]
follow_untyped_imports = True
# Treat symbols imported from Google's protobuf library as type Any.
# This suppresses errors due to attributes not known to typeshed,
# e.g. Descriptor._options.
[mypy-google.protobuf.*]
follow_imports = skip
follow_imports_for_stubs = true