mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 20:39:13 +00:00
Optimize imports
This commit is contained in:
parent
a4869e4974
commit
09b926fd59
3 changed files with 5 additions and 4 deletions
|
@ -56,9 +56,10 @@ pub fn check_lines(checks: &mut Vec<Check>, contents: &str, settings: &Settings)
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use std::collections::BTreeSet;
|
||||||
|
|
||||||
use super::check_lines;
|
use super::check_lines;
|
||||||
use super::*;
|
use super::*;
|
||||||
use std::collections::BTreeSet;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn e501_non_ascii_char() {
|
fn e501_non_ascii_char() {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use colored::Colorize;
|
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use clap::ValueEnum;
|
use clap::ValueEnum;
|
||||||
|
use colored::Colorize;
|
||||||
|
|
||||||
use crate::message::Message;
|
use crate::message::Message;
|
||||||
use crate::tell_user;
|
use crate::tell_user;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
use once_cell::sync::Lazy;
|
|
||||||
use std::collections::BTreeSet;
|
use std::collections::BTreeSet;
|
||||||
|
|
||||||
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
static ANNOTATED_SUBSCRIPTS: Lazy<BTreeSet<&'static str>> = Lazy::new(|| {
|
static ANNOTATED_SUBSCRIPTS: Lazy<BTreeSet<&'static str>> = Lazy::new(|| {
|
||||||
BTreeSet::from([
|
BTreeSet::from([
|
||||||
"AbstractAsyncContextManager",
|
"AbstractAsyncContextManager",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue