gifn-apply: switch from black to ruff for source-code formatting

Change-Id: I4cc95eae235e9b6214302c4199088751cb29db60
diff --git a/tools/git-if-needed/tox.ini b/tools/git-if-needed/tox.ini
index ce41c10..6c8ad52 100644
--- a/tools/git-if-needed/tox.ini
+++ b/tools/git-if-needed/tox.ini
@@ -6,7 +6,7 @@
 envlist =
   ruff
   ruff-all
-  black
+  format
   mypy
   unit-tests
   functional-cinder
@@ -17,24 +17,24 @@
   python/gifn_apply \
   python/unit_tests
 
-[testenv:black]
+[testenv:format]
 skip_install = True
 tags =
   check
 deps =
-  black >= 23, < 24
+  -r python/requirements/ruff.txt
 commands =
-  black --check -- {[defs]pyfiles}
+  ruff format --check --config python/config/ruff-base/pyproject.toml --diff -- {[defs]pyfiles}
 
-[testenv:black-reformat]
+[testenv:reformat]
 skip_install = True
 tags =
   format
   manual
 deps =
-  black >= 23, < 24
+  -r python/requirements/ruff.txt
 commands =
-  black -- {[defs]pyfiles}
+  ruff format --config python/config/ruff-base/pyproject.toml -- {[defs]pyfiles}
 
 [testenv:mypy]
 skip_install = True