mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-16 08:30:30 +00:00
Remove core
module from ruff_python_formatter
(#3373)
This commit is contained in:
parent
0a9d259f9c
commit
da1f83fe32
8 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::core::visitor;
|
||||
use crate::core::visitor::Visitor;
|
||||
use crate::cst::visitor;
|
||||
use crate::cst::visitor::Visitor;
|
||||
use crate::cst::{
|
||||
Alias, Arg, Body, BoolOp, CmpOp, Excepthandler, Expr, Keyword, Operator, Pattern, SliceIndex,
|
||||
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::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};
|
||||
|
||||
pub mod helpers;
|
||||
pub mod visitor;
|
||||
|
||||
type Ident = String;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
|
@ -13,7 +13,6 @@ use crate::parentheses::normalize_parentheses;
|
|||
mod attachment;
|
||||
pub mod cli;
|
||||
pub mod context;
|
||||
mod core;
|
||||
mod cst;
|
||||
mod format;
|
||||
mod newlines;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use rustpython_parser::ast::Constant;
|
||||
|
||||
use crate::core::visitor;
|
||||
use crate::core::visitor::Visitor;
|
||||
use crate::cst::visitor;
|
||||
use crate::cst::visitor::Visitor;
|
||||
use crate::cst::{
|
||||
Alias, Arg, BoolOp, CmpOp, Excepthandler, ExcepthandlerKind, Expr, ExprKind, Keyword, Operator,
|
||||
Pattern, SliceIndex, Stmt, StmtKind, UnaryOp,
|
||||
|
|
|
@ -2,9 +2,9 @@ use rustpython_parser::ast::Constant;
|
|||
|
||||
use ruff_python_ast::source_code::Locator;
|
||||
|
||||
use crate::core::helpers::is_radix_literal;
|
||||
use crate::core::visitor;
|
||||
use crate::core::visitor::Visitor;
|
||||
use crate::cst::helpers::is_radix_literal;
|
||||
use crate::cst::visitor;
|
||||
use crate::cst::visitor::Visitor;
|
||||
use crate::cst::{Expr, ExprKind, Stmt, StmtKind};
|
||||
use crate::trivia::Parenthesize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue