diff --git a/src/check_lines.rs b/src/check_lines.rs index 62d9b4e315..5132228fcf 100644 --- a/src/check_lines.rs +++ b/src/check_lines.rs @@ -1,8 +1,8 @@ use std::collections::BTreeMap; -use crate::ast::types::Range; use rustpython_parser::ast::Location; +use crate::ast::types::Range; use crate::autofix::fixer; use crate::checks::{Check, CheckCode, CheckKind, Fix}; use crate::noqa; diff --git a/src/noqa.rs b/src/noqa.rs index 9f0339ef2e..8e6abdccf0 100644 --- a/src/noqa.rs +++ b/src/noqa.rs @@ -150,12 +150,12 @@ pub fn add_noqa( #[cfg(test)] mod tests { - use crate::ast::types::Range; use anyhow::Result; use rustpython_parser::ast::Location; use rustpython_parser::lexer; use rustpython_parser::lexer::LexResult; + use crate::ast::types::Range; use crate::checks::{Check, CheckKind}; use crate::noqa::{add_noqa_inner, extract_noqa_line_for}; diff --git a/src/plugins.rs b/src/plugins.rs index 131b0adb35..d7641c780a 100644 --- a/src/plugins.rs +++ b/src/plugins.rs @@ -1,16 +1,3 @@ -mod assert_equals; -mod assert_tuple; -mod if_tuple; -mod invalid_print_syntax; -mod print_call; -mod super_call_with_parameters; -mod type_of_primitive; -mod unnecessary_abspath; -mod use_pep585_annotation; -mod use_pep604_annotation; -mod useless_metaclass_type; -mod useless_object_inheritance; - pub use assert_equals::assert_equals; pub use assert_tuple::assert_tuple; pub use if_tuple::if_tuple; @@ -23,3 +10,16 @@ pub use use_pep585_annotation::use_pep585_annotation; pub use use_pep604_annotation::use_pep604_annotation; pub use useless_metaclass_type::useless_metaclass_type; pub use useless_object_inheritance::useless_object_inheritance; + +mod assert_equals; +mod assert_tuple; +mod if_tuple; +mod invalid_print_syntax; +mod print_call; +mod super_call_with_parameters; +mod type_of_primitive; +mod unnecessary_abspath; +mod use_pep585_annotation; +mod use_pep604_annotation; +mod useless_metaclass_type; +mod useless_object_inheritance; diff --git a/src/pyproject.rs b/src/pyproject.rs index 3f33f40b76..46588b9dcb 100644 --- a/src/pyproject.rs +++ b/src/pyproject.rs @@ -154,12 +154,13 @@ mod tests { use anyhow::Result; - use super::StrCheckCodePair; use crate::checks::CheckCode; use crate::pyproject::{ find_project_root, find_pyproject_toml, parse_pyproject_toml, Config, PyProject, Tools, }; + use super::StrCheckCodePair; + #[test] fn deserialize() -> Result<()> { let pyproject: PyProject = toml::from_str(r#""#)?;