From 794288eed0e7b360ecd5f8faed035bc1e4cdda22 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Fri, 27 Dec 2024 13:47:35 +0800 Subject: [PATCH] remove ruff --- dev/src/generate/binding_python.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/dev/src/generate/binding_python.rs b/dev/src/generate/binding_python.rs index aea5bd83de0..68bd9b4577d 100644 --- a/dev/src/generate/binding_python.rs +++ b/dev/src/generate/binding_python.rs @@ -20,7 +20,6 @@ use anyhow::Result; use rinja::Template; use std::fs; use std::path::PathBuf; -use std::process::Command; use super::parser::{ConfigType, Service}; @@ -68,17 +67,7 @@ pub fn generate(project_root: PathBuf, services: &Services) -> Result<()> { .expect("should build output file path") .into(); - fs::write(output_file.clone(), t).expect("failed to write result to file"); - - let ruff = Command::new("ruff") - .arg("format") - .arg("--no-cache") - .arg(output_file) - .output(); - - if let Err(err) = ruff { - println!("failed to format generate code with ruff: {}", err); - } + fs::write(output_file, t).expect("failed to write result to file"); Ok(()) }