mirror of https://github.com/astral-sh/ruff
Remove `core` module from `ruff_python_formatter` (#3373)
This commit is contained in:
parent
0a9d259f9c
commit
da1f83fe32
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::core::visitor;
|
use crate::cst::visitor;
|
||||||
use crate::core::visitor::Visitor;
|
use crate::cst::visitor::Visitor;
|
||||||
use crate::cst::{
|
use crate::cst::{
|
||||||
Alias, Arg, Body, BoolOp, CmpOp, Excepthandler, Expr, Keyword, Operator, Pattern, SliceIndex,
|
Alias, Arg, Body, BoolOp, CmpOp, Excepthandler, Expr, Keyword, Operator, Pattern, SliceIndex,
|
||||||
Stmt, UnaryOp,
|
Stmt, UnaryOp,
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
pub mod helpers;
|
|
||||||
pub mod visitor;
|
|
||||||
|
|
@ -9,9 +9,12 @@ use rustpython_parser::Mode;
|
||||||
use ruff_python_ast::source_code::Locator;
|
use ruff_python_ast::source_code::Locator;
|
||||||
use ruff_python_ast::types::Range;
|
use ruff_python_ast::types::Range;
|
||||||
|
|
||||||
use crate::core::helpers::{expand_indented_block, find_tok, is_elif};
|
use crate::cst::helpers::{expand_indented_block, find_tok, is_elif};
|
||||||
use crate::trivia::{Parenthesize, Trivia};
|
use crate::trivia::{Parenthesize, Trivia};
|
||||||
|
|
||||||
|
pub mod helpers;
|
||||||
|
pub mod visitor;
|
||||||
|
|
||||||
type Ident = String;
|
type Ident = String;
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::parentheses::normalize_parentheses;
|
||||||
mod attachment;
|
mod attachment;
|
||||||
pub mod cli;
|
pub mod cli;
|
||||||
pub mod context;
|
pub mod context;
|
||||||
mod core;
|
|
||||||
mod cst;
|
mod cst;
|
||||||
mod format;
|
mod format;
|
||||||
mod newlines;
|
mod newlines;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
use rustpython_parser::ast::Constant;
|
use rustpython_parser::ast::Constant;
|
||||||
|
|
||||||
use crate::core::visitor;
|
use crate::cst::visitor;
|
||||||
use crate::core::visitor::Visitor;
|
use crate::cst::visitor::Visitor;
|
||||||
use crate::cst::{
|
use crate::cst::{
|
||||||
Alias, Arg, BoolOp, CmpOp, Excepthandler, ExcepthandlerKind, Expr, ExprKind, Keyword, Operator,
|
Alias, Arg, BoolOp, CmpOp, Excepthandler, ExcepthandlerKind, Expr, ExprKind, Keyword, Operator,
|
||||||
Pattern, SliceIndex, Stmt, StmtKind, UnaryOp,
|
Pattern, SliceIndex, Stmt, StmtKind, UnaryOp,
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ use rustpython_parser::ast::Constant;
|
||||||
|
|
||||||
use ruff_python_ast::source_code::Locator;
|
use ruff_python_ast::source_code::Locator;
|
||||||
|
|
||||||
use crate::core::helpers::is_radix_literal;
|
use crate::cst::helpers::is_radix_literal;
|
||||||
use crate::core::visitor;
|
use crate::cst::visitor;
|
||||||
use crate::core::visitor::Visitor;
|
use crate::cst::visitor::Visitor;
|
||||||
use crate::cst::{Expr, ExprKind, Stmt, StmtKind};
|
use crate::cst::{Expr, ExprKind, Stmt, StmtKind};
|
||||||
use crate::trivia::Parenthesize;
|
use crate::trivia::Parenthesize;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue