mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:23:11 +00:00
![]() ## Summary This PR adds support for VS Code specific cell metadata to consider when collecting valid code cells. For context, Ruff only runs on valid code cells. These are the code cells that doesn't contain cell magics. Previously, Ruff only used the notebook's metadata to determine whether it's a Python notebook. But, in VS Code, a notebook's preferred language might be Python but it could still contain code cells for other languages. This can be determined with the `metadata.vscode.languageId` field. ### References: * https://code.visualstudio.com/docs/languages/identifiers * |
||
---|---|---|
.. | ||
automagic.json | ||
automagic_after_code.json | ||
automagic_assignment.json | ||
automagic_before_code.json | ||
automagics.json | ||
cell_magic.json | ||
code_and_magic.json | ||
markdown.json | ||
only_code.json | ||
only_magic.json | ||
unicode_magic_gh9145.json | ||
valid_cell_magic.json | ||
vscode_language_id_javascript.json | ||
vscode_language_id_python.json |