ruff/crates/ruff_notebook/resources/test/fixtures/jupyter
Charlie Marsh afcd00da56
Create ruff_notebook crate (#7039)
## Summary

This PR moves `ruff/jupyter` into its own `ruff_notebook` crate. Beyond
the move itself, there were a few challenges:

1. `ruff_notebook` relies on the source map abstraction. I've moved the
source map into `ruff_diagnostics`, since it doesn't have any
dependencies on its own and is used alongside diagnostics.
2. `ruff_notebook` has a couple tests for end-to-end linting and
autofixing. I had to leave these tests in `ruff` itself.
3. We had code in `ruff/jupyter` that relied on Python lexing, in order
to provide a more targeted error message in the event that a user saves
a `.py` file with a `.ipynb` extension. I removed this in order to avoid
a dependency on the parser, it felt like it wasn't worth retaining just
for that dependency.

## Test Plan

`cargo test`
2023-09-01 13:56:44 +00:00
..
cell Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00: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 Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ipy_escape_command_expected.ipynb Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00: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