Make Clap an optional feature for ruff crate (#3498)

This commit is contained in:
Charlie Marsh 2023-03-14 11:02:05 -04:00 committed by GitHub
parent 78c2b0ac47
commit 106a93eab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 41 deletions

View file

@ -99,7 +99,7 @@ pub struct CheckArgs {
#[arg(long, value_enum, env = "RUFF_FORMAT")]
pub format: Option<SerializationFormat>,
/// The minimum Python version that should be supported.
#[arg(long)]
#[arg(long, value_enum)]
pub target_version: Option<PythonVersion>,
/// Path to the `pyproject.toml` or `ruff.toml` file to use for
/// configuration.