-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server
Description
Hello, today I activated Ruff for Jupyter Notebooks and noticed some strange behavior I didn't see with normal Python files:
After reordering the cells of a notebook, the editor window shows false-positives from Ruff linting.
MWE
pyproject.toml
[tool.ruff]
extend-include = [
"*.ipynb",
]
ruff.ipynb (with --- denoting a new cell)
import random
---
f = random.random()
---
g = random.random()
After moving the third cell with g = ... to the second position, Ruff reports F401 on import random.
Environment
Operating System Windows_NT x64 10.0.19045
VS Code 1.91.1 (commit f1e16e1e6214d7c44d078b1f0607b2388f29d729)
Ruff extension v2024.36.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingserverRelated to the LSP serverRelated to the LSP server