-
Notifications
You must be signed in to change notification settings - Fork 23
Can't set ignored error codes #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please enable debug messages for pylsp and post the log messages here, i.e. by starting pylsp with |
Thx for the log @astoff. This is the relevant line:
This was intentionally set in order to leave any configuration to be found by ruff itself.
|
Thanks for looking into this. Indeed, I don't want to change the pyproject.toml file, and my intention was to apply some extra settings on top of it. Let me explain a bit my workflow. The pyproject.toml file has all the nitty-gritty rules checked by CI and that need to be fulfilled before my code is ready to merge. I can also run them locally with I'm not sure which confusing behavior you foresee, but it seems very natural and customary to me that server settings > project settings > system settings get merged, with that order of precedence. |
I had the same issue once. How about we include any |
That would work for me, yes. :-) |
Also allow use of server options over project settings
Also allow use of server options over project settings
Pushed and tested, please try on your side. |
I just tested here and it works fine so far. Thanks! |
I'm sending the following configuration to pylsp via the didChangeConfiguration notification but I don't get the desired effect of disabling error code D101:
However, if I switch
pylsp.ruff.enabled
tofalse
, the plugin is disabled, so the editor part of my setup must be working.The text was updated successfully, but these errors were encountered: