Add RUFF_FORMAT environment variable support (#1731)

Resolves #1716
This commit is contained in:
messense
2023-01-08 10:54:19 +08:00
committed by GitHub
parent 4149627f19
commit f9a5867d3e
3 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ pub struct Cli {
#[arg(long, value_delimiter = ',')]
pub per_file_ignores: Option<Vec<PatternPrefixPair>>,
/// Output serialization format for error messages.
#[arg(long, value_enum)]
#[arg(long, value_enum, env = "RUFF_FORMAT")]
pub format: Option<SerializationFormat>,
/// The name of the file when passing it through stdin.
#[arg(long)]