ruff/crates/ruff_notebook/resources/test/fixtures/jupyter
Dhruv Manilawala 6bbabceead
Allow transparent cell magics (#8911)
## Summary

This PR updates the logic for `is_magic_cell` to include certain cell
magics. These cell magics would contain Python code following the line
defining the command. The code could define a variable which can then be
referenced in other cells. Currently, we would ignore the cell
completely leading to undefined-name violation.

As discussed in
https://github.com/astral-sh/ruff/issues/8354#issuecomment-1832221009

## Test Plan

Add new test case to validate this scenario.
2023-12-07 14:15:43 -06:00
..
cell Allow transparent cell magics (#8911) 2023-12-07 14:15:43 -06:00
add_missing_cell_id.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
after_fix.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
before_fix.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
invalid_extension.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ipy_escape_command.ipynb Allow transparent cell magics (#8911) 2023-12-07 14:15:43 -06:00
ipy_escape_command_expected.ipynb Allow transparent cell magics (#8911) 2023-12-07 14:15:43 -06:00
isort.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
isort_expected.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
no_cell_id.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
no_trailing_newline.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
not_json.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
R.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
unused_variable.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
unused_variable_expected.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
valid.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
wrong_schema.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00