From 6099541241f3d01c9c71f5e04fbc862f2a33762d Mon Sep 17 00:00:00 2001 From: Felix H Date: Wed, 2 Jul 2025 09:54:13 +0000 Subject: [PATCH 1/2] replaces --diff with --check so that resulting print when everything is fine is not danger-red colored --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index e39e3d30b84..c90f15bf9b2 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ description = Lint and code formatting checks (ruff) extras = lint commands = ruff check --no-fix --show-fixes {[testenv]python_source_dirs} - ruff format --diff {[testenv]python_source_dirs} + ruff format --check {[testenv]python_source_dirs} [testenv:typecheck] description = Run type checking (mypy) From 3fcbed35ab6cc3f8acecf16206694d95b2ae3e28 Mon Sep 17 00:00:00 2001 From: danceratopz Date: Wed, 2 Jul 2025 12:36:14 +0200 Subject: [PATCH 2/2] chore(tooling): change `-diff` to `--check` for `ruff format` in mkdocs tox env --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c90f15bf9b2..92cd0fab845 100644 --- a/tox.ini +++ b/tox.ini @@ -58,7 +58,7 @@ setenv = DYLD_FALLBACK_LIBRARY_PATH = /opt/homebrew/lib commands = ruff check --no-fix --show-fixes docs/scripts - ruff format --diff docs/scripts + ruff format --check docs/scripts mkdocs build --strict [testenv:pytest]