mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:23:11 +00:00
Pull in RustPython parser (#6099)
This commit is contained in:
parent
86539c1fc5
commit
40f54375cb
779 changed files with 108400 additions and 2078 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue