Skip to content

Commit

Permalink
remove ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Dec 27, 2024
1 parent c586161 commit 794288e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions dev/src/generate/binding_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit 794288e

Please sign in to comment.