Fork of the python-language-server project, maintained by the Spyder IDE team and the community
1.76k
stars
186
forks
source link
Automatically detect pyproject.toml file in notebook-dir (or allow to use relative paths in configuration) #442
Open
fhg-isi opened 10 months ago
I try to reference a pyproject.toml file containing pyling settings. I would like to reference it relative to the notebook directory, for example:
"pylsp.plugins.pylint.args": ["--rcfile $notebook-dir$/pyproject.toml"],
A relative instead of an absolute path would allow me to move my portable python IDE to a different folder and still keep the reference working.
However, a path variable $notebook-dir$ does not seem to be supported, yet.
Automatic detection of configuration files already seem to work for pycodestyle and flake8.
=> Please support pyproject.toml in the notebook directory as central configuration file.
Related:
https://github.com/jupyter-lsp/jupyterlab-lsp/issues/983
https://pylint.pycqa.org/en/latest/user_guide/usage/run.html#command-line-options
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
https://github.com/PyCQA/pycodestyle/issues/813
https://github.com/PyCQA/flake8/issues/234