From 7f5eda4a4b32ca4102e54681cedae4f0dcc69ee8 Mon Sep 17 00:00:00 2001 From: dangotbanned <125183946+dangotbanned@users.noreply.github.com> Date: Tue, 10 Sep 2024 18:27:06 +0100 Subject: [PATCH] ci(typing): fix support `pylance>=2024.9.1` Recent [versions](https://github.com/microsoft/pylance-release/releases) are producing warnings that cannot be silenced. See https://github.com/microsoft/pylance-release/wiki/Settings.json-overridden-by-Pyrightconfig.json-or-Pyproject.toml --- pyproject.toml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7dff1ab14..c9754be15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -444,14 +444,31 @@ module = [ ignore_missing_imports = true [tool.pyright] +enableExperimentalFeatures=true extraPaths=["./tools"] pythonPlatform="All" pythonVersion="3.8" +reportTypedDictNotRequiredAccess="none" +reportIncompatibleMethodOverride="none" reportUnusedExpression="none" +reportUnsupportedDunderAll="none" include=[ "./altair/**/*.py", - ".doc/*.py", - "./sphinxext/**/*.py", + "./doc/*.py", "./tests/**/*.py", "./tools/**/*.py", -] \ No newline at end of file +] +ignore=[ + "./altair/vegalite/v5/display.py", + "./altair/vegalite/v5/schema/", + "./altair/utils/core.py", + "./altair/utils/_dfi_types.py", + "./altair/_magics.py", + "./altair/jupyter/", + "./sphinxext/", + "./tests/test_jupyter_chart.py", + "./tests/utils/", + "./tests/test_magics.py", + "./tests/vegalite/v5/test_geo_interface.py", + "../../../**/Lib", # stdlib +]