sublimelsp / LSP-ruff

LSP helper for ruff - an extremely fast Python linter, written in Rust.
https://packagecontrol.io/packages/LSP-ruff
MIT License
26 stars 4 forks source link

ignore setting probably not work #33

Closed danilovmy closed 9 months ago

danilovmy commented 9 months ago
"LSP":
        {
            "LSP-ruff":
            {
                "args": [
                        "--ignore=E501", "--ignore", "E501",
                    ],
                "ignore": ["E501"],
                "initializationOptions":
                {
                    "settings": {
                        "showNotification": "on",
                        "logLevel": "debug",
                        "args": [
                                    "--ignore=E501", "--ignore", "E501",
                                ],
                        "ignore": ["E501"],
                    }
                }
            }
        },

I tried all possibilities to switch off E501 but unsuccessfully

rchl commented 9 months ago

If you are trying to set those in a project file then it should be:

{
    "settings": {
        "LSP": {
            "LSP-ruff": {
                "initializationOptions": {
                    "settings": {
                        "args": [
                            "--ignore=E501"
                        ]
                    }
                }
            }
        }
    },
}