Fix placement of update feature flag

This commit is contained in:
Charlie Marsh 2023-01-13 23:46:32 -05:00
parent ee6c81d02a
commit 27fe4873f2
2 changed files with 2 additions and 3 deletions

View file

@ -19,14 +19,14 @@ use ruff::registry::RuleCode;
use ruff::resolver::{FileDiscovery, PyprojectDiscovery};
use ruff::settings::flags;
use ruff::settings::types::SerializationFormat;
use ruff::{fix, fs, packaging, resolver, violations};
use ruff::{fix, fs, packaging, resolver, violations, warn_user_once};
use serde::Serialize;
use walkdir::WalkDir;
use crate::cache;
use crate::cli::Overrides;
use crate::diagnostics::{lint_path, lint_stdin, Diagnostics};
use crate::iterators::par_iter;
use crate::{cache, warn_user_once};
/// Run the linter over a collection of files.
pub fn run(

View file

@ -18,7 +18,6 @@ use ::ruff::resolver::{
use ::ruff::settings::configuration::Configuration;
use ::ruff::settings::types::SerializationFormat;
use ::ruff::settings::{pyproject, Settings};
#[cfg(feature = "update-informer")]
use ::ruff::{fix, fs, warn_user_once};
use anyhow::Result;
use clap::{CommandFactory, Parser};