Pull in RustPython parser (#6099)
This commit is contained in:
@@ -13,7 +13,7 @@ license = { workspace = true }
|
||||
[lib]
|
||||
|
||||
[dependencies]
|
||||
ruff_text_size = { workspace = true }
|
||||
ruff_text_size = { path = "../ruff_text_size" }
|
||||
ruff_source_file = { path = "../ruff_source_file" }
|
||||
|
||||
memchr = { workspace = true }
|
||||
@@ -22,5 +22,6 @@ unic-ucd-ident = "0.9.0"
|
||||
|
||||
[dev-dependencies]
|
||||
insta = { workspace = true }
|
||||
rustpython-parser = { workspace = true }
|
||||
rustpython-ast = { workspace = true }
|
||||
ruff_python_ast = { path = "../ruff_python_ast" }
|
||||
ruff_python_parser = { path = "../ruff_python_parser" }
|
||||
|
||||
|
||||
@@ -83,9 +83,9 @@ impl PythonWhitespace for str {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::has_trailing_content;
|
||||
use ruff_python_ast::{Ranged, Suite};
|
||||
use ruff_python_parser::{Parse, ParseError};
|
||||
use ruff_source_file::Locator;
|
||||
use rustpython_ast::{Ranged, Suite};
|
||||
use rustpython_parser::{Parse, ParseError};
|
||||
|
||||
#[test]
|
||||
fn trailing_content() -> Result<(), ParseError> {
|
||||
|
||||
Reference in New Issue
Block a user