Remove core module from ruff_python_formatter (#3373)

This commit is contained in:
Charlie Marsh 2023-03-08 14:11:39 -05:00 committed by GitHub
parent 0a9d259f9c
commit da1f83fe32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View file

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

View file

@ -1,2 +0,0 @@
pub mod helpers;
pub mod visitor;

View file

@ -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)]

View file

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

View file

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

View file

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