Pull in RustPython parser (#6099)

This commit is contained in:
Micha Reiser 2023-07-27 11:29:11 +02:00 committed by GitHub
parent 86539c1fc5
commit 40f54375cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
779 changed files with 108400 additions and 2078 deletions

View file

@ -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" }

View file

@ -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> {