From 6a6ad1e96e40b5035e20ba3fa6648984d4011f25 Mon Sep 17 00:00:00 2001 From: Abdo Date: Mon, 23 Jun 2025 12:24:50 +0300 Subject: [PATCH] Fix formatting --- build/configure/src/python.rs | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/build/configure/src/python.rs b/build/configure/src/python.rs index cb8fae8c2..d2afbe1f5 100644 --- a/build/configure/src/python.rs +++ b/build/configure/src/python.rs @@ -13,8 +13,8 @@ use ninja_gen::input::BuildInput; use ninja_gen::inputs; use ninja_gen::python::python_format; use ninja_gen::python::PythonEnvironment; -use ninja_gen::python::RuffCheck; use ninja_gen::python::PythonTypecheck; +use ninja_gen::python::RuffCheck; use ninja_gen::Build; /// Normalize version string by removing leading zeros from numeric parts @@ -197,28 +197,28 @@ pub fn check_python(build: &mut Build) -> Result<()> { }, )?; - let ruff_folders = &[ - "qt/aqt", - "ftl", - "pylib/tools", - "tools", - "python", - ]; + let ruff_folders = &["qt/aqt", "ftl", "pylib/tools", "tools", "python"]; let ruff_deps = inputs![ glob!["{pylib,ftl,qt,python,tools}/**/*.py"], ":pylib:anki", ":qt:aqt" ]; - build.add_action("check:ruff", RuffCheck { - folders: ruff_folders, - deps: ruff_deps.clone(), - check_only: true, - })?; - build.add_action("fix:ruff", RuffCheck { - folders: ruff_folders, - deps: ruff_deps, - check_only: false, - })?; + build.add_action( + "check:ruff", + RuffCheck { + folders: ruff_folders, + deps: ruff_deps.clone(), + check_only: true, + }, + )?; + build.add_action( + "fix:ruff", + RuffCheck { + folders: ruff_folders, + deps: ruff_deps, + check_only: false, + }, + )?; Ok(()) }