Open steakhutzeee opened 7 months ago
so you want to disable basedpyright's type checking entirely? setting typeCheckingMode
to 'off'
in the basedpyright
section should do the trick
Not entirely sure as I just started using Neovim with based/pyright and ruff_lsp.
Was following this https://github.com/astral-sh/ruff-lsp/issues/384#issuecomment-1992012227 and this https://github.com/astral-sh/ruff-lsp/issues/384#issuecomment-1989619482 to not completely disable pyright typing but only the duplicated hints.
Basedpyright does make some extra changes to disable more things than pyright does when you set it to 'off', not sure if that is documented properly though
This way it looks like i'm disabling the typing entirely, and also i see duplicates as in attached screen.
return {
settings = {
basedpyright = {
-- Using Ruff's import organizer
disableOrganizeImports = true,
typeCheckingMode = 'off',
},
},
}
maybe check this repo's pyproject.toml
, since i also use ruff and disable conflicting rules
maybe i could add a new typeCheckingMode
that enables everything except the rules covered by ruff, so users don't have to configure it manually
Ah yes
Also noted that basedpyright has duplicates itself, as this error/hint:
yeah that's the same issue as #149
Could basedpyright.disableLanguageServices
help in avoiding duplicates with ruff language server?
Maybe it will disable too much features.
i think that only disables things like autocomplete, import suggestions, go to definition, etc. which are all things ruff currently can't do
Hi,
i'm actually using the following config for Pyright in order to avoid duplicates with ruff_lsp. What should be the equivalent for basedpyright?