-
Notifications
You must be signed in to change notification settings - Fork 148
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
Support for project-level config files #633
Comments
I am not convinced that we should be doing this though. I think that this should be addressed by specific servers like python-lsp-server (pylsp) or jedi-language-server instead. The LSP protocol does not support language-specific configuration files like
Our settings for filtering diagnostics are meant to allow tool-agnostic approach for servers that do not support such tools-specific configuration. I would prefer to avoid creating a new standard and advise to help extending the language servers instead so that they respect more configuration from |
I did manage to configure
The Now, I have no idea about the details of the architecture between this project and the language servers. I see that the Python language server discovers configs using a If this is the wrong place to discuss this, could you point me to the correct repository, please? :) |
I would such placement of |
Re-opening; the issue was tracked down to the We could workaround this by placing the dummy python files in their true paths but as hidden files. Pros:
Cons:
|
Many tools put files/directories into the project. E.g. our
I would even go so far as to say that all projects with Jupyter notebooks have |
Yes, but I am not proposing to use a single folder (we already do that) but one hidden file for each notebook, in the same folder as is the notebook. Are you really sure you cannot change the startup directory for JupyterHub? A simpler solution might be to fix |
Technically it is certainly possible, but that single directory would be the new default for all users on our JupyterHub. It's not a good idea to change the home directory for all users. 😄 Besides, it would only work for one project and not for multiple project's with their own |
Hidden Python files in the project root could be excluded in |
Out of curiosity what would happen if you create
I would hope that this should only affect you as the user as it is not modifying the |
The next version of |
I tried both config files and it does not seem to change anything. The directory that appears when JupyterLab is ready is still |
Elevator Pitch
Filtering the relevant diagnostics should be as easy as
git clone
ing a repo with a project-levelsetup.cfg
.Motivation
We are working collaboratively on a repo of Jupyter notebooks. When working on a Python project, we are accustomed to have a
setup.cfg
that configures the linters for the whole project. The same convenience should be in place for this repo of notebooks.Design Ideas
A difficulty that I see is that at the moment
jupyter-lsp
does not seem to have a concept of "project boundary". Therefore it might be an issue to find project-level configuration files.Possible solutions:
git rev-parse --show-toplevel
if available and find config files there and in any sub-directoriesThe text was updated successfully, but these errors were encountered: