From 7ed431389608c0ea2ea0ffd653beef647abd632e Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Thu, 30 Mar 2023 19:23:16 -0500 Subject: [PATCH] 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 --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index caecce4aa96a..da4336146d42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,5 +130,11 @@ convention = "numpy" "galleries/users_explain/text/text_props.py" = ["E501"] [tool.mypy] -exclude = [".*/matplotlib/(sphinxext|backends|testing)", ".*/mpl_toolkits"] +exclude = [ + ".*/matplotlib/(sphinxext|backends|testing)", + ".*/mpl_toolkits", + # tinypages is used for testing the sphinx ext, + # stubtest will import and run, opening a figure if not excluded + ".*/tinypages", +] ignore_missing_imports = true pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy