Skip to content

Commit 7ed4313

Browse files
committed
Ensure tinypages ignored by mypy/stubtest
Should mean that the figure no longer gets shown when running stubtest. I had previously been working around by setting the MPLBACKEND envvar to a non-gui backend
1 parent e305953 commit 7ed4313

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,11 @@ convention = "numpy"
130130
"galleries/users_explain/text/text_props.py" = ["E501"]
131131

132132
[tool.mypy]
133-
exclude = [".*/matplotlib/(sphinxext|backends|testing)", ".*/mpl_toolkits"]
133+
exclude = [
134+
".*/matplotlib/(sphinxext|backends|testing)",
135+
".*/mpl_toolkits",
136+
# tinypages is used for testing the sphinx ext,
137+
# stubtest will import and run, opening a figure if not excluded
138+
".*/tinypages",
139+
]
134140
ignore_missing_imports = true

0 commit comments

Comments
 (0)