-
Notifications
You must be signed in to change notification settings - Fork 219
configuration: how to #156
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
I think this issue highlights a point where python-lsp-server's documentation is lacking, I would like to see it addressed by improving it. Part of the problem is that the LSP server configuration is passed in different ways depending on the client (e.g. Emacs, Vim, VSCode...). Still it would be useful to either point to the popular clients' documentation in this regard or even to put some examples in python-lsp-server's documentation so users have at least a starting point. About overriding config per workspace, that is also client-specific. For Emacs I think it's doable with dir_locals.el. Again it would be useful to have either examples or links to clients' documentation. |
I came up with this dir_locals.el in my project root, but it seems it doesn't work
or maybe it DOES work and I'm misinterpreting what I see Here it says that the type of I assumed it's a list of strings but I'm not sure I'm not well versed in Elisp How do I express a repeat string ? |
I say it seems it's not working becaue if I call So I guess it's not working |
I think I achieved a bit of progress thanks to this answer but it still doesn't work at this point, I think it's more about pypls than it is about lsp-mode This is my project root layout
|
I think this is related to #157 |
I've spend awhile trying to figure this out. I'm using Emacs with lsp-mode, and I hope this will be applicable to others. I wanted to ignore a D100 error, so I tried putting it in As best I can tell, pylsp is using several different checking / linting packages and it can be tricky to figure out where a specific error came from. When it seems your config is being ignored, maybe it's because you're configuring the wrong package. I eventually put something like the following in
There's |
This should be In any case, I added a complete |
How do I write a configuration file that is local to a project ?
The home page says that Pylsp follows this order
How do I get a workspace local configuration file ?
Thanks
The text was updated successfully, but these errors were encountered: