vscode-ruff
vscode-ruff copied to clipboard
Support for `jupyter.runStartupCommands`
Environment:
- VSCode (latest)
- Jupyter and ruff extensions
Issue:
- Jupyter allows some commands to be run at startup
- This can be tested using
jupyter.runStartupCommands
in VSCode settings - If I import a module using this, it is not recognized by ruff
- It lints the import wondering where did it come from
Expected resolution:
- Look at the auto imports, or the available namespace variables
- Allow a setting to let ruff know of such imports?
Example:
import pandas as pd
is run at startup
Related: https://github.com/astral-sh/ruff/issues/9644