ruff
328262bf - Add cell indexes to all diagnostics (#9387)

Commit
1 year ago
Add cell indexes to all diagnostics (#9387) ## Summary Ensures that any lint rules that include line locations render them as relative to the cell (and include the cell number) when inside a Jupyter notebook. Closes https://github.com/astral-sh/ruff/issues/6672. ## Test Plan `cargo test`
Author
Parents
  • crates
    • ruff_linter
      • resources/test/fixtures/pyflakes
        • File
          F402.ipynb
      • src
        • checkers/ast
          • analyze
            • File
              deferred_scopes.rs
          • File
            mod.rs
        • File
          linter.rs
        • rules
          • pyflakes
            • File
              mod.rs
            • rules
              • File
                imports.rs
              • File
                redefined_while_unused.rs
            • snapshots
              • ruff_linter__rules__pyflakes__tests__F402_F402.ipynb.snap
          • pylint/rules
            • File
              load_before_global_declaration.rs
    • ruff_source_file/src
      • File
        lib.rs