question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for project-level config files

See original GitHub issue

Elevator Pitch

Filtering the relevant diagnostics should be as easy as git cloneing a repo with a project-level setup.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:

  • simply walk up the file tree a number of levels
  • use git rev-parse --show-toplevel if available and find config files there and in any sub-directories

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
krassowskicommented, Jul 12, 2021

I would such placement of setup.cfg to work. Feel free to open an issue in https://github.com/python-lsp/python-lsp-server; if you feel comfortable with Python you might be the best person to debug this at the moment, I don’t believe any one else touched this code recently.

0reactions
StefanBrandcommented, Jul 13, 2021

Out of curiosity what would happen if you create ~/.jupyter/jupyter_notebook_config.py or ~/.jupyter/jupyter_server_config.py with:

I tried both config files and it does not seem to change anything. The directory that appears when JupyterLab is ready is still /home/jovyan.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Config file: support for project level options #9188 - GitHub
Project level options in the UI; Version/build level options in the config file (except for a couple); We have a default branch (usually...
Read more >
Simpler configuration management with project level config
<stack>.yaml file. Project level config just gives you the ability to set default values for all stacks in your Pulumi.yaml .
Read more >
Configuration files for code analysis rules - .NET
Global AnalyzerConfig file: Project-level configuration options. Useful when some project files reside outside the project folder.
Read more >
Project-level Secure Files - GitLab Docs
Secure files support both plain text and binary file types. You can manage secure files in the project settings, or with the secure...
Read more >
config | Data Version Control - DVC
The following config sections are written by this command to the appropriate config file ( .dvc/config by default), supporting different config options within:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found