Skip to content
Discussion options

You must be logged in to vote

Ok, I finally managed to configure it, here is my configuration:

{
    "languageserver": {
        "pyrefly": {
            "command": "pyrefly",
            "args": ["lsp"],
            "filetypes": ["python"],
            "rootPatterns": ["pyrefly.toml", "pyproject.toml", ".git"],
            "initializationOptions": {
                "pyrefly": {
                  "displayTypeErrors": "force-on"
                }
            }
    }
}

After checking pyrefly source code I could not find the diagnostics setting but I found the documentation I was looking for: https://pyrefly.org/en/docs/IDE/#customization, it describes the option I was looking for displayTypeErrors.

Thanks @fannheyward f…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@PicoJr
Comment options

@fannheyward
Comment options

@PicoJr
Comment options

@PicoJr
Comment options

Answer selected by PicoJr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants