From 98596dddd3e53016e31ae5875aff3b004a3212b0 Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Sat, 5 Oct 2024 11:55:22 -0700 Subject: [PATCH] Disable pyright config? (#9570) * Remove superfluous lines from pyright config * Disable pyright config? I'd propose disabling pyright in the `pyproject.toml` file for now, since including it means that all errors show up in devs' vscode, which then makes it more difficult to work with the actual errors. It overrides local VS Code settings, so I don't think is possible to disable... --- pyproject.toml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 79ebfb526e2..c23d12ffba1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -214,13 +214,16 @@ warn_return_any = true module = ["xarray.namedarray.*", "xarray.tests.test_namedarray"] -[tool.pyright] -defineConstant = {DEBUG = true} - -# Enabling this means that developers who have disabled the warning locally — -# because not all dependencies are installable — are overridden -# reportMissingImports = true -reportMissingTypeStubs = false +# We disable pyright here for now, since including it means that all errors show +# up in devs' VS Code, which then makes it more difficult to work with actual +# errors. It overrides local VS Code settings so isn't escapable. + +# [tool.pyright] +# defineConstant = {DEBUG = true} +# # Enabling this means that developers who have disabled the warning locally — +# # because not all dependencies are installable — are overridden +# # reportMissingImports = true +# reportMissingTypeStubs = false [tool.ruff] extend-exclude = [