mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
Rename checks.rs to registry.rs (#1566)
This commit is contained in:
@@ -7,7 +7,7 @@ use rustpython_parser::ast::{Cmpop, Expr, ExprKind};
|
||||
use crate::ast::helpers::except_range;
|
||||
use crate::ast::types::Range;
|
||||
use crate::autofix::Fix;
|
||||
use crate::checks::{Check, CheckKind};
|
||||
use crate::registry::{Check, CheckKind};
|
||||
use crate::source_code_locator::SourceCodeLocator;
|
||||
|
||||
static URL_REGEX: Lazy<Regex> = Lazy::new(|| Regex::new(r"^https?://\S+$").unwrap());
|
||||
|
||||
@@ -9,8 +9,8 @@ mod tests {
|
||||
use anyhow::Result;
|
||||
use test_case::test_case;
|
||||
|
||||
use crate::checks::CheckCode;
|
||||
use crate::linter::test_path;
|
||||
use crate::registry::CheckCode;
|
||||
use crate::settings;
|
||||
|
||||
#[test_case(CheckCode::E401, Path::new("E40.py"))]
|
||||
|
||||
@@ -11,7 +11,7 @@ use crate::ast::types::Range;
|
||||
use crate::ast::whitespace::leading_space;
|
||||
use crate::autofix::Fix;
|
||||
use crate::checkers::ast::Checker;
|
||||
use crate::checks::{Check, CheckKind};
|
||||
use crate::registry::{Check, CheckKind};
|
||||
use crate::source_code_generator::SourceCodeGenerator;
|
||||
use crate::source_code_style::SourceCodeStyleDetector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user