Skip to content

Commit

Permalink
feat: notebook add python-lsp-ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Sep 16, 2024
1 parent afe6439 commit 7ef1467
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install-virtualenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ source ./notebook/bin/activate

# vscode python tools, notebook & utils
uv pip install pip ruff ipython ipdb arrow openpyxl pandas requests \
jupyterlab jupyterlab-lsp jupyterlab-widgets jupyterlab-git jupyterlab_code_formatter matplotlib sympy
jupyterlab jupyterlab-lsp jupyterlab-widgets jupyterlab-git jupyterlab_code_formatter python-lsp-ruff matplotlib sympy

# 添加环境变量等
echo "" >> /root/.bashrc
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"language_servers": {
"pylsp": {
"serverSettings": {
"pyls.plugins.pydocstyle.enabled": false,
"pyls.plugins.pyflakes.enabled": false,
"pyls.plugins.flake8.enabled": false,
"pyls.plugins.mccabe.enabled": false,
"pyls.plugins.ruff.enabled": true
}
}
}
}

0 comments on commit 7ef1467

Please sign in to comment.