From e006aa4f25fe7a902c00706d302fd8a031063929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihai=20Capot=C4=83?= Date: Wed, 23 Oct 2024 17:35:35 -0700 Subject: [PATCH 1/2] Remove "default" remark from `ruff check` Should have been removed in the deprecation PR #10169. --- crates/ruff/src/args.rs | 2 +- docs/configuration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff/src/args.rs b/crates/ruff/src/args.rs index 65f7e0aa0b01cc..5a3d2f28741061 100644 --- a/crates/ruff/src/args.rs +++ b/crates/ruff/src/args.rs @@ -92,7 +92,7 @@ pub struct Args { #[allow(clippy::large_enum_variant)] #[derive(Debug, clap::Subcommand)] pub enum Command { - /// Run Ruff on the given files or directories (default). + /// Run Ruff on the given files or directories. Check(CheckCommand), /// Explain a rule (or all rules). #[command(group = clap::ArgGroup::new("selector").multiple(false).required(true))] diff --git a/docs/configuration.md b/docs/configuration.md index 3d8a288a236de0..5e47cfd9eee486 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -515,7 +515,7 @@ Ruff: An extremely fast Python linter and code formatter. Usage: ruff [OPTIONS] Commands: - check Run Ruff on the given files or directories (default) + check Run Ruff on the given files or directories rule Explain a rule (or all rules) config List or describe the available configuration options linter List all supported upstream linters From 934fe7780f916afc46c76fac244c327f7f181d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihai=20Capot=C4=83?= Date: Wed, 23 Oct 2024 18:11:07 -0700 Subject: [PATCH 2/2] Remove remaining "default" --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 5e47cfd9eee486..20da0743dfa647 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -557,7 +557,7 @@ Or `ruff help check` for more on the linting command: ```text -Run Ruff on the given files or directories (default) +Run Ruff on the given files or directories Usage: ruff check [OPTIONS] [FILES]...